Commit faa6e73
authored
Release/v0.12.0 (#216)
* DecodeInt{8, 16} negative limit checks + tests (#125)
Updates #120
Also adds a test for Byteslice encoding and decoding
roundtripping and part slicing then rejoining.
* fix circleci2.0
* some metalinter issues
* skip over default values when encoding time (#178)
* do not encode empty structs, unless `amino:"write_empty"` is set (#179)
* skip over empty structs by default
* slightly more info on panics
* Fix zero time decoding (#190)
- fix decoding of skipped fields in time, or completely skipped time
- necessary because sec=0 and ns=0 do not result in time.Time{} and vice versa
* Prepare release 0.11.0 (#193)
* Fix time decoding & encoding of arrays and structs
- top-level entry functions called with BinFieldNum:1 to properly encode e.g. arrays of structs (see non-time related test)
- add defaultValue method, different from #196 it deals with multiply nested pointers
* Removed dependency on tmlibs/common
* Always write empty if struct field is pointer
* add tests for #206
- test for pointers to empty struct and nil pointer
* fix proto3 compatibility for empty structs
* Add EmptyStruct to fuzz tests
* Revert "fix proto3 compatibility for empty structs"
* Do not allow encoding of nil struct pointers in a slice/array
* By default, 0-length list elements are decoded as nil1 parent 2106ca6 commit faa6e73
File tree
24 files changed
+924
-237
lines changed- .circleci
- cmd
- tests
- fuzz
- binary/debug
- json/debug
- proto3
- proto
24 files changed
+924
-237
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | | - | |
6 | 4 | | |
7 | | - | |
8 | | - | |
9 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| 21 | + | |
| 22 | + | |
20 | 23 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
3 | 25 | | |
4 | 26 | | |
5 | 27 | | |
6 | 28 | | |
7 | 29 | | |
8 | | - | |
| 30 | + | |
9 | 31 | | |
10 | | - | |
| 32 | + | |
11 | 33 | | |
12 | 34 | | |
13 | 35 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | 40 | | |
45 | 41 | | |
46 | 42 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
17 | 26 | | |
18 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
19 | 33 | | |
20 | 34 | | |
21 | 35 | | |
| |||
189 | 203 | | |
190 | 204 | | |
191 | 205 | | |
192 | | - | |
| 206 | + | |
193 | 207 | | |
194 | 208 | | |
195 | 209 | | |
| |||
327 | 341 | | |
328 | 342 | | |
329 | 343 | | |
330 | | - | |
| 344 | + | |
331 | 345 | | |
332 | 346 | | |
333 | 347 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
| 404 | + | |
404 | 405 | | |
405 | 406 | | |
406 | 407 | | |
| |||
461 | 462 | | |
462 | 463 | | |
463 | 464 | | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
464 | 468 | | |
465 | 469 | | |
466 | 470 | | |
| |||
480 | 484 | | |
481 | 485 | | |
482 | 486 | | |
483 | | - | |
484 | | - | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
485 | 495 | | |
486 | | - | |
| 496 | + | |
487 | 497 | | |
488 | 498 | | |
489 | 499 | | |
| |||
547 | 557 | | |
548 | 558 | | |
549 | 559 | | |
| 560 | + | |
550 | 561 | | |
551 | 562 | | |
552 | 563 | | |
| |||
611 | 622 | | |
612 | 623 | | |
613 | 624 | | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
614 | 628 | | |
615 | 629 | | |
616 | 630 | | |
| |||
636 | 650 | | |
637 | 651 | | |
638 | 652 | | |
639 | | - | |
640 | | - | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
641 | 661 | | |
642 | | - | |
| 662 | + | |
643 | 663 | | |
644 | 664 | | |
645 | 665 | | |
| |||
703 | 723 | | |
704 | 724 | | |
705 | 725 | | |
706 | | - | |
707 | 726 | | |
708 | 727 | | |
709 | 728 | | |
| |||
714 | 733 | | |
715 | 734 | | |
716 | 735 | | |
717 | | - | |
| 736 | + | |
718 | 737 | | |
719 | 738 | | |
720 | 739 | | |
| |||
731 | 750 | | |
732 | 751 | | |
733 | 752 | | |
734 | | - | |
| 753 | + | |
735 | 754 | | |
736 | 755 | | |
737 | 756 | | |
| |||
760 | 779 | | |
761 | 780 | | |
762 | 781 | | |
763 | | - | |
764 | 782 | | |
765 | 783 | | |
766 | 784 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
300 | 303 | | |
301 | 304 | | |
302 | 305 | | |
| |||
307 | 310 | | |
308 | 311 | | |
309 | 312 | | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
310 | 324 | | |
311 | 325 | | |
312 | 326 | | |
| |||
384 | 398 | | |
385 | 399 | | |
386 | 400 | | |
387 | | - | |
388 | | - | |
389 | | - | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
390 | 407 | | |
391 | 408 | | |
392 | 409 | | |
393 | 410 | | |
394 | | - | |
| 411 | + | |
395 | 412 | | |
396 | 413 | | |
397 | 414 | | |
398 | 415 | | |
| 416 | + | |
399 | 417 | | |
400 | 418 | | |
401 | 419 | | |
402 | 420 | | |
403 | 421 | | |
404 | | - | |
405 | | - | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
406 | 426 | | |
407 | 427 | | |
408 | 428 | | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
409 | 437 | | |
410 | 438 | | |
411 | 439 | | |
| |||
0 commit comments