-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfield_integer_test.go
69 lines (66 loc) · 1.66 KB
/
field_integer_test.go
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
package rapier
import "testing"
func Test_Expr_Integer_For_Field(t *testing.T) {
t.Run("int", func(t *testing.T) {
testExprInteger(t, NewInt)
})
t.Run("int8", func(t *testing.T) {
testExprInteger(t, NewInt8)
})
t.Run("int16", func(t *testing.T) {
testExprInteger(t, NewInt16)
})
t.Run("int32", func(t *testing.T) {
testExprInteger(t, NewInt32)
})
t.Run("int64", func(t *testing.T) {
testExprInteger(t, NewInt64)
})
t.Run("uint", func(t *testing.T) {
testExprInteger(t, NewUint)
})
t.Run("uint8", func(t *testing.T) {
testExprInteger(t, NewUint8)
})
t.Run("uint16", func(t *testing.T) {
testExprInteger(t, NewUint16)
})
t.Run("uint32", func(t *testing.T) {
testExprInteger(t, NewUint32)
})
t.Run("uint64", func(t *testing.T) {
testExprInteger(t, NewUint64)
})
}
func Test_SetExpr_Integer_For_Field(t *testing.T) {
t.Run("int", func(t *testing.T) {
testSetExprInteger(t, NewInteger[int])
})
t.Run("int8", func(t *testing.T) {
testSetExprInteger(t, NewInteger[int8])
})
t.Run("int16", func(t *testing.T) {
testSetExprInteger(t, NewInteger[int16])
})
t.Run("int32", func(t *testing.T) {
testSetExprInteger(t, NewInteger[int32])
})
t.Run("int64", func(t *testing.T) {
testSetExprInteger(t, NewInteger[int64])
})
t.Run("uint", func(t *testing.T) {
testSetExprInteger(t, NewInteger[uint])
})
t.Run("uint8", func(t *testing.T) {
testSetExprInteger(t, NewInteger[uint8])
})
t.Run("uint16", func(t *testing.T) {
testSetExprInteger(t, NewInteger[uint16])
})
t.Run("uint32", func(t *testing.T) {
testSetExprInteger(t, NewInteger[uint32])
})
t.Run("uint64", func(t *testing.T) {
testSetExprInteger(t, NewInteger[uint64])
})
}