mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-07 00:42:42 +00:00
Remove TestRandom (#9006)
We have a legacy `TestRandom` trait which generates random types for testing and fuzzing. This function overlaps with `arbitrary` which is used very commonly in the ecosystem. Remove `TestRandom` and generate random type instances using `Arbitrary`. Co-Authored-By: Mac L <mjladson@pm.me> Co-Authored-By: Michael Sproul <michael@sigmaprime.io>
This commit is contained in:
@@ -16,9 +16,11 @@ participation_metrics = []
|
||||
fork_from_env = []
|
||||
portable = ["bls/supranational-portable"]
|
||||
test_backfill = []
|
||||
arbitrary = ["dep:arbitrary", "types/arbitrary"]
|
||||
|
||||
[dependencies]
|
||||
alloy-primitives = { workspace = true }
|
||||
arbitrary = { workspace = true, optional = true }
|
||||
bitvec = { workspace = true }
|
||||
bls = { workspace = true }
|
||||
educe = { workspace = true }
|
||||
@@ -74,11 +76,15 @@ types = { workspace = true }
|
||||
zstd = { workspace = true }
|
||||
|
||||
[dev-dependencies]
|
||||
arbitrary = { workspace = true }
|
||||
beacon_chain = { path = ".", features = ["arbitrary"] }
|
||||
criterion = { workspace = true }
|
||||
maplit = { workspace = true }
|
||||
mockall = { workspace = true }
|
||||
mockall_double = { workspace = true }
|
||||
rand_xorshift = { workspace = true }
|
||||
serde_json = { workspace = true }
|
||||
types = { workspace = true, features = ["arbitrary"] }
|
||||
|
||||
[[bench]]
|
||||
name = "benches"
|
||||
|
||||
Reference in New Issue
Block a user