mirror of
https://github.com/status-im/nim-eth.git
synced 2025-01-26 14:32:18 +00:00
Add simple rlp fuzz test
This commit is contained in:
parent
c0a067178b
commit
d337435aa1
12
tests/fuzzing/rlp/fuzz.nim
Normal file
12
tests/fuzzing/rlp/fuzz.nim
Normal file
@ -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…
x
Reference in New Issue
Block a user