accounts/abi: added abi test cases, minor bug fixes (#20903)
* accounts/abi: added documentation * accounts/abi: reduced usage of arguments.LengthNonIndexed * accounts/abi: simplified reflection logic * accounts/abi: moved testjson data into global declaration * accounts/abi: removed duplicate test cases * accounts/abi: reworked abi tests * accounts/abi: added more tests for abi packing * accounts/abi/bind: refactored base tests * accounts/abi: run pack tests as subtests * accounts/abi: removed duplicate tests * accounts/abi: removed unnused arguments.LengthNonIndexed Due to refactors to the code, we do not need the arguments.LengthNonIndexed function anymore. You can still get the length by calling len(arguments.NonIndexed()) * accounts/abi: added type test * accounts/abi: modified unpack test to pack test * accounts/abi: length check on arrayTy * accounts/abi: test invalid abi * accounts/abi: fixed rebase error * accounts/abi: fixed rebase errors * accounts/abi: removed unused definition * accounts/abi: merged packing/unpacking tests * accounts/abi: fixed [][][32]bytes encoding * accounts/abi: added tuple test cases * accounts/abi: renamed getMockLog -> newMockLog * accounts/abi: removed duplicate test * accounts/abi: bools -> booleans
Showing
- accounts/abi/abi_test.go 144 additions, 107 deletionsaccounts/abi/abi_test.go
- accounts/abi/argument.go 6 additions, 16 deletionsaccounts/abi/argument.go
- accounts/abi/bind/base_test.go 52 additions, 163 deletionsaccounts/abi/bind/base_test.go
- accounts/abi/error.go 1 addition, 3 deletionsaccounts/abi/error.go
- accounts/abi/numbers.go 1 addition, 0 deletionsaccounts/abi/numbers.go
- accounts/abi/pack_test.go 35 additions, 596 deletionsaccounts/abi/pack_test.go
- accounts/abi/packing_test.go 988 additions, 0 deletionsaccounts/abi/packing_test.go
- accounts/abi/reflect.go 17 additions, 19 deletionsaccounts/abi/reflect.go
- accounts/abi/type_test.go 25 additions, 0 deletionsaccounts/abi/type_test.go
- accounts/abi/unpack_test.go 54 additions, 284 deletionsaccounts/abi/unpack_test.go
Loading
Please register or sign in to comment