Skip to content

Commit a47cf06

Browse files
authored
Refactor fuzzing test (#271)
* feat: new fuzz test * test: add arbtest * fix: remove PROPTEST_FACTOR
1 parent 1233b8d commit a47cf06

45 files changed

Lines changed: 3575 additions & 198 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"collab",
88
"dhat",
99
"flate",
10+
"fuzzer",
1011
"gmax",
1112
"heapless",
1213
"idspan",

Cargo.lock

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,11 @@ members = [
88
"crates/loro-internal",
99
"crates/loro-preload",
1010
"crates/loro-wasm",
11+
"crates/fuzz",
1112
]
13+
14+
[workspace.dependencies]
15+
enum_dispatch = "0.3.11"
16+
debug-log = { version = "0.3.1", features = [] }
17+
enum-as-inner = "0.5.1"
18+
fxhash = "0.2.1"

crates/fuzz/Cargo.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[package]
2+
name = "fuzz"
3+
version = "0.1.0"
4+
edition = "2021"
5+
6+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7+
8+
[dependencies]
9+
loro = { path = "../loro", features = ["test_utils"] }
10+
arbitrary = "1"
11+
tabled = "0.10"
12+
debug-log = { workspace = true }
13+
fxhash = { workspace = true }
14+
enum_dispatch = { workspace = true }
15+
enum-as-inner = { workspace = true }
16+
17+
[dev-dependencies]
18+
arbtest = "^0.2.0"

crates/fuzz/fuzz/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
target
2+
corpus
3+
artifacts
4+
coverage

0 commit comments

Comments
 (0)