chore(codecs): add proptest roundtrip to all main_codec (#803)

This commit is contained in:
joshieDo
2023-01-11 14:06:01 +08:00
committed by GitHub
parent 593a94e426
commit aabbe4923b
13 changed files with 90 additions and 21 deletions

View File

@ -58,19 +58,21 @@ triehash = "0.8"
plain_hasher = "0.2"
hash-db = "0.15"
# optional
# arbitrary utils
arbitrary = { version = "1.1.7", features = ["derive"], optional = true }
proptest = { version = "1.0", optional = true }
proptest-derive = { version = "0.3", optional = true }
[dev-dependencies]
arbitrary = { version = "1.1.7", features = ["derive"] }
serde_json = "1.0"
hex-literal = "0.3"
test-fuzz = "3.0.4"
rand = "0.8"
revm-interpreter = { git = "https://github.com/bluealloy/revm", rev = "a05fb262d87c78ee52d400e6c0f4708d4c527f32", features = ["serde", "arbitrary"] }
proptest = { version = "1.0" }
arbitrary = { version = "1.1.7", features = ["derive"] }
proptest = { version = "1.0" }
proptest-derive = "0.3"
# necessary so we don't hit a "undeclared 'std'":
# https://github.com/paradigmxyz/reth/pull/177#discussion_r1021172198
@ -78,4 +80,4 @@ secp256k1 = "0.24.2"
[features]
default = []
arbitrary = ["dep:arbitrary", "dep:proptest", "revm-interpreter/arbitrary"]
arbitrary = ["revm-interpreter/arbitrary", "dep:arbitrary", "dep:proptest", "dep:proptest-derive"]