-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnow_test.go
More file actions
42 lines (35 loc) · 892 Bytes
/
now_test.go
File metadata and controls
42 lines (35 loc) · 892 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package timezone
import (
"github.com/stretchr/testify/assert"
"testing"
)
func TestUTCSecond(t *testing.T) {
utcSecond := UTCSecond()
t.Logf("utcSecond %v", utcSecond)
assert.NotEmpty(t, utcSecond)
}
func TestUTCMicro(t *testing.T) {
utcMicro := UTCMicro()
t.Logf("utcMicro %v", utcMicro)
assert.NotEmpty(t, utcMicro)
}
func TestSecond(t *testing.T) {
second := Second()
t.Logf("second %v", second)
assert.NotEmpty(t, second)
}
func TestMicro(t *testing.T) {
micro := Micro()
t.Logf("micro %v", micro)
assert.NotEmpty(t, micro)
}
func TestTimestampSecond(t *testing.T) {
timestampSecond := TimestampSecond()
t.Logf("timestampSecond %v", timestampSecond)
assert.NotZero(t, timestampSecond)
}
func TestTimestampUnixNano(t *testing.T) {
timestampUnixNano := TimestampUnixNano()
t.Logf("timestampUnixNano %v", timestampUnixNano)
assert.NotZero(t, timestampUnixNano)
}