1
0
mirror of https://github.com/json-iterator/go.git synced 2025-04-20 11:28:49 +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:
Tim Hockin 2017-06-27 19:51:13 +01:00
parent f09f778ca9
commit 97ee4ad4a2
151 changed files with 31 additions and 3709 deletions
output_tests
struct
alias
empty
empty_alias
everything
float64
float64_alias
float64s
float64s_alias
int32
int32_alias
int32s
int32s_alias
map
int32_ptr_string
int32_string
int32_struct_strings
string_ptr_string
string_string
string_struct_strings
ptr_float64
ptr_float64_alias
ptr_int32
ptr_int32_alias
ptr_ptr_struct_empty
ptr_ptr_struct_strings
ptr_string
ptr_string_alias
ptr_struct_empty
ptr_struct_strings
ptrs_float64
ptrs_int32
ptrs_string
slice
string
string_alias
strings
strings_alias
struct
structs
builtins/float32s
maps/builtins/float32

@ -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
}

@ -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
}

@ -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