Tim Hockin
9fc858b117
Reorganize output_tests for maps
...
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. map[string]*string -> map/string/ptr_string
This exposed some redundant cases and some missing cases, too. Now
map[string] is the "main" test case that exercises all the variants of
value types, and the other key types are just to prove that they
basically work.
2017-06-27 19:19:37 +01:00
Tim Hockin
f93d25f8b1
Add output tests for slices of slices
2017-06-27 18:28:52 +01:00
Tim Hockin
7cd7a6cc7c
Add output tests for maps of maps/slices/structs
2017-06-27 11:58:07 +01:00
Tim Hockin
7d6c9374e8
Add output test for structs of struct ptrs
2017-06-27 11:46:55 +01:00
Tim Hockin
e16ee7f8ac
Add output tests for structs of slices and maps
2017-06-27 11:41:17 +01:00
Tim Hockin
cf6367546b
Add output tests for structs of structs
2017-06-27 11:28:17 +01:00
Tao Wen
dc44e85a86
#73 fix interface{} optimization for one ptr field struct and array
2017-06-26 22:37:24 +08:00
Tao Wen
85f7a1b0b3
Merge pull request #74 from thockin/output_tests
...
Output tests for structs
2017-06-26 21:49:06 +08:00
Tim Hockin
507a446eda
Add output_tests for structs of ptrs
2017-06-26 06:09:00 -07:00
Tim Hockin
76eefc25ba
Add output_test for empty structs
2017-06-26 05:45:54 -07:00
Tim Hockin
21a16bd252
Add output_tests for structs of builtins
2017-06-26 05:37:47 -07:00
Tao Wen
0c0c9f119f
update value proposition
2017-06-26 14:28:03 +08:00
Tao Wen
cf77980493
#71 fixed []byte alias
2017-06-26 14:25:56 +08:00
Tao Wen
7d681fe2c2
#71 fix map key type of string alias
2017-06-26 11:52:22 +08:00
Tao Wen
0c07128d3c
#71 sort non string map keys
2017-06-26 10:42:47 +08:00
Tao Wen
f771d32291
#70 decode null to nil for map/slice
2017-06-26 10:20:49 +08:00
Tao Wen
d100b0d41f
fix typo
2017-06-26 10:02:45 +08:00
Tao Wen
81e64121ba
#71 fix html escape for string alias
2017-06-26 09:57:45 +08:00
Tao Wen
dcc91365ee
Merge pull request #72 from thockin/output_tests
...
Output tests
2017-06-26 08:51:10 +08:00
Tim Hockin
8f3de9c412
Adapt tests to use new Config structs
...
the unit test uses compatible mode. The benchmarks measure compat,
default, and fastest.
This still fails for strings and slices and maps all over the place.
2017-06-25 10:29:48 -07:00
Tim Hockin
5d3508979f
Add output tests for slices of builtins
2017-06-25 10:00:35 -07:00
Tao Wen
8f8e16b4c2
#63 keep struct field order
2017-06-23 08:21:02 +08:00
Tao Wen
d7ea1acd3f
#63 fix embed struct at last
2017-06-23 07:45:18 +08:00
Tao Wen
ebed7df895
fix unicode and escape
2017-06-22 16:00:47 +08:00
Tao Wen
caaa04195e
#69 fix unicode support
2017-06-21 18:25:37 +08:00
Tao Wen
ff3c624fa9
fix anonymous fields
2017-06-21 00:26:18 +08:00
Tao Wen
3333ec11a0
support private fields
2017-06-20 23:48:41 +08:00
Tao Wen
29a928e1d2
support naming strategy
2017-06-20 23:09:53 +08:00
Tao Wen
83fa27ff9a
#67 time as int64 with decoder
2017-06-20 17:52:41 +08:00
Tao Wen
cefb2972fd
#67 time as int64 with specified precision
2017-06-20 17:46:29 +08:00
Tao Wen
486534c67c
#67 time as int64
2017-06-20 17:43:47 +08:00
Tao Wen
ed79b1726e
fix encoder/decoder cast issue
2017-06-20 17:01:21 +08:00
Tao Wen
85be06b145
#68 empty array to object/map
2017-06-20 16:36:22 +08:00
Tao Wen
086001225d
#68 string to float64
2017-06-20 16:20:56 +08:00
Tao Wen
2ea4d48e1f
#68 string to float32
2017-06-20 16:17:00 +08:00
Tao Wen
417011b497
#68 remove redundant math max constants
2017-06-20 16:10:29 +08:00
Tao Wen
ae6ce2fc3f
#68 fuzzy all kinds of integer
2017-06-20 16:07:30 +08:00
Tao Wen
8ef0c22f25
#68 handle float to int safely
2017-06-20 15:46:22 +08:00
Tao Wen
a5ae3a2649
#68 float to int
2017-06-20 15:20:56 +08:00
Tao Wen
306b2896cf
#68 string to int
2017-06-20 15:18:24 +08:00
Tao Wen
818ae1331a
#68 number to string
2017-06-20 15:11:01 +08:00
Tao Wen
8f6a840c63
fix anonymous struct
2017-06-20 13:33:40 +08:00
Tao Wen
be221df432
#66 Make extension api like the java version
2017-06-20 10:41:54 +08:00
Tao Wen
499412ec4c
#66 extract out feacture_reflect_extension
2017-06-20 08:42:36 +08:00
Tao Wen
c36a7ed7cd
#66 extract out feacture_reflect_extension
2017-06-20 08:42:25 +08:00
Tao Wen
14588726a1
expose ValEncoder & ValDecoder
2017-06-20 08:08:59 +08:00
Tao Wen
aa01f57b7f
rename AdaptedDecoder => Decoder and AdaptedEncoder => Encoder
2017-06-20 08:00:43 +08:00
Tao Wen
b3170a8cef
rename Encoder => ValEncoder and Decoder => ValDecoder
2017-06-20 07:59:45 +08:00
Tao Wen
43a832beee
add isEmptyFunc
2017-06-20 07:57:23 +08:00
Tao Wen
39c9bb226a
fix lossy float marshal and omit empty
2017-06-20 07:51:38 +08:00