mirror of
https://github.com/json-iterator/go.git
synced 2025-03-23 21:09:11 +02:00
Reorganize output_tests for structs
As I added more and more cases, I found the dir structure hard to navigate. The new structure follows how you read a type: e.g. struct { F *string } -> struct/ptr_string This exposed some redundant cases and some missing cases, too.
This commit is contained in:
parent
f09f778ca9
commit
97ee4ad4a2
7
output_tests/struct/float64s/types.go
Normal file
7
output_tests/struct/float64s/types.go
Normal file
@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
type T struct {
|
||||
F1 float64
|
||||
F2 float64
|
||||
F3 float64
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
type A float32
|
||||
type A float64
|
||||
|
||||
type T struct {
|
||||
F1 A
|
@ -1,5 +1,5 @@
|
||||
package test
|
||||
|
||||
type T struct {
|
||||
F *int8
|
||||
F int32
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
package test
|
||||
|
||||
type A int8
|
||||
type A int32
|
||||
|
||||
type T struct {
|
||||
F A
|
@ -1,5 +1,5 @@
|
||||
package test
|
||||
|
||||
type T struct {
|
||||
F map[string]*int32
|
||||
F map[int32]*string
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
package test
|
||||
|
||||
type T struct {
|
||||
F map[string]int32
|
||||
F map[int32]string
|
||||
}
|
9
output_tests/struct/map/int32_struct_strings/types.go
Normal file
9
output_tests/struct/map/int32_struct_strings/types.go
Normal file
@ -0,0 +1,9 @@
|
||||
package test
|
||||
|
||||
type T struct {
|
||||
F map[int32]struct {
|
||||
F1 string
|
||||
F2 string
|
||||
F3 string
|
||||
}
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
package test
|
||||
|
||||
type A1 float32
|
||||
type A2 *float32
|
||||
type A1 float64
|
||||
type A2 *float64
|
||||
|
||||
type T struct {
|
||||
F1 *A1
|
@ -1,5 +1,5 @@
|
||||
package test
|
||||
|
||||
type T struct {
|
||||
F int8
|
||||
F *int32
|
||||
}
|
7
output_tests/struct/ptrs_float64/types.go
Normal file
7
output_tests/struct/ptrs_float64/types.go
Normal file
@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
type T struct {
|
||||
F1 *float64
|
||||
F2 *float64
|
||||
F3 *float64
|
||||
}
|
@ -1,7 +0,0 @@
|
||||
package test
|
||||
|
||||
type T struct {
|
||||
F1 float32
|
||||
F2 float32
|
||||
F3 float32
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
package test
|
||||
|
||||
type T struct {
|
||||
F map[string]float32
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user