-
Notifications
You must be signed in to change notification settings - Fork 1k
/
map_test.go
60 lines (58 loc) · 1.33 KB
/
map_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
package test
func init() {
testCases = append(testCases,
(*map[int8]string)(nil),
(*map[int16]string)(nil),
(*map[int32]string)(nil),
(*map[int64]string)(nil),
(*map[string][4]string)(nil),
(*map[string]bool)(nil),
(*map[string]byte)(nil),
(*map[string]float64)(nil),
(*map[string]int32)(nil),
(*map[string]map[string]string)(nil),
(*map[string]*[4]string)(nil),
(*map[string]*bool)(nil),
(*map[string]*float64)(nil),
(*map[string]*int32)(nil),
(*map[string]*map[string]string)(nil),
(*map[string]*[]string)(nil),
(*map[string]*string)(nil),
(*map[string]*structVarious)(nil),
(*map[string]*uint8)(nil),
(*map[string][]string)(nil),
(*map[string]string)(nil),
(*map[string]stringAlias)(nil),
(*map[string]struct{})(nil),
(*map[string]structEmpty)(nil),
(*map[string]struct {
F *string
})(nil),
(*map[string]struct {
String string
Int int32
Float float64
Struct struct {
X string
}
Slice []string
Map map[string]string
})(nil),
(*map[string]uint8)(nil),
(*map[stringAlias]string)(nil),
(*map[stringAlias]stringAlias)(nil),
(*map[uint8]string)(nil),
(*map[uint16]string)(nil),
(*map[uint32]string)(nil),
)
}
type structVarious struct {
String string
Int int32
Float float64
Struct struct {
X string
}
Slice []string
Map map[string]string
}