1
0
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:
Tim Hockin 2017-06-27 19:51:13 +01:00
parent f09f778ca9
commit 97ee4ad4a2
151 changed files with 31 additions and 3709 deletions

View File

@ -0,0 +1,7 @@
package test
type T struct {
F1 float64
F2 float64
F3 float64
}

View File

@ -1,6 +1,6 @@
package test
type A float32
type A float64
type T struct {
F1 A

View File

@ -1,5 +1,5 @@
package test
type T struct {
F *int8
F int32
}

View File

@ -1,6 +1,6 @@
package test
type A int8
type A int32
type T struct {
F A

View File

@ -1,5 +1,5 @@
package test
type T struct {
F map[string]*int32
F map[int32]*string
}

View File

@ -1,5 +1,5 @@
package test
type T struct {
F map[string]int32
F map[int32]string
}

View File

@ -0,0 +1,9 @@
package test
type T struct {
F map[int32]struct {
F1 string
F2 string
F3 string
}
}

View File

@ -1,7 +1,7 @@
package test
type A1 float32
type A2 *float32
type A1 float64
type A2 *float64
type T struct {
F1 *A1

View File

@ -1,5 +1,5 @@
package test
type T struct {
F int8
F *int32
}

View File

@ -0,0 +1,7 @@
package test
type T struct {
F1 *float64
F2 *float64
F3 *float64
}

View File

@ -1,7 +0,0 @@
package test
type T struct {
F1 float32
F2 float32
F3 float32
}

View File

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