You've already forked json-iterator
mirror of
https://github.com/json-iterator/go.git
synced 2025-06-12 22:47:42 +02:00
consolidate more tests
This commit is contained in:
@ -3,6 +3,7 @@ package test
|
||||
import "time"
|
||||
|
||||
func init() {
|
||||
structFields1To11()
|
||||
testCases = append(testCases,
|
||||
(*struct1Alias)(nil),
|
||||
(*struct {
|
||||
@ -258,6 +259,99 @@ func init() {
|
||||
)
|
||||
}
|
||||
|
||||
func structFields1To11() {
|
||||
testCases = append(testCases,
|
||||
(*struct {
|
||||
Field1 string
|
||||
})(nil),
|
||||
(*struct {
|
||||
Field1 string
|
||||
Field2 string
|
||||
})(nil),
|
||||
(*struct {
|
||||
Field1 string
|
||||
Field2 string
|
||||
Field3 string
|
||||
})(nil),
|
||||
(*struct {
|
||||
Field1 string
|
||||
Field2 string
|
||||
Field3 string
|
||||
Field4 string
|
||||
})(nil),
|
||||
(*struct {
|
||||
Field1 string
|
||||
Field2 string
|
||||
Field3 string
|
||||
Field4 string
|
||||
Field5 string
|
||||
})(nil),
|
||||
(*struct {
|
||||
Field1 string
|
||||
Field2 string
|
||||
Field3 string
|
||||
Field4 string
|
||||
Field5 string
|
||||
Field6 string
|
||||
})(nil),
|
||||
(*struct {
|
||||
Field1 string
|
||||
Field2 string
|
||||
Field3 string
|
||||
Field4 string
|
||||
Field5 string
|
||||
Field6 string
|
||||
Field7 string
|
||||
})(nil),
|
||||
(*struct {
|
||||
Field1 string
|
||||
Field2 string
|
||||
Field3 string
|
||||
Field4 string
|
||||
Field5 string
|
||||
Field6 string
|
||||
Field7 string
|
||||
Field8 string
|
||||
})(nil),
|
||||
(*struct {
|
||||
Field1 string
|
||||
Field2 string
|
||||
Field3 string
|
||||
Field4 string
|
||||
Field5 string
|
||||
Field6 string
|
||||
Field7 string
|
||||
Field8 string
|
||||
Field9 string
|
||||
})(nil),
|
||||
(*struct {
|
||||
Field1 string
|
||||
Field2 string
|
||||
Field3 string
|
||||
Field4 string
|
||||
Field5 string
|
||||
Field6 string
|
||||
Field7 string
|
||||
Field8 string
|
||||
Field9 string
|
||||
Field10 string
|
||||
})(nil),
|
||||
(*struct {
|
||||
Field1 string
|
||||
Field2 string
|
||||
Field3 string
|
||||
Field4 string
|
||||
Field5 string
|
||||
Field6 string
|
||||
Field7 string
|
||||
Field8 string
|
||||
Field9 string
|
||||
Field10 string
|
||||
Field11 string
|
||||
})(nil),
|
||||
)
|
||||
}
|
||||
|
||||
type struct1 struct {
|
||||
Byte1 byte
|
||||
Byte2 byte
|
||||
|
Reference in New Issue
Block a user