mirror of https://github.com/status-im/nim-eth.git
Add simple rlp fuzz test
This commit is contained in:
parent
c0a067178b
commit
d337435aa1
|
@ -0,0 +1,12 @@
|
||||||
|
import chronicles, eth/rlp, ../fuzz_helpers
|
||||||
|
|
||||||
|
# TODO: have a default init as such
|
||||||
|
init:
|
||||||
|
discard
|
||||||
|
|
||||||
|
test:
|
||||||
|
try:
|
||||||
|
var rlp = rlpFromBytes(payload.toRange)
|
||||||
|
discard rlp.inspect()
|
||||||
|
except RlpError:
|
||||||
|
debug "Inspect failed", err = getCurrentExceptionMsg()
|
Loading…
Reference in New Issue