mirror of
https://github.com/loro-dev/loro.git
synced 2025-02-11 14:53:12 +00:00
test: add txn fuzz
This commit is contained in:
parent
d1d242578f
commit
707fdc5b55
2 changed files with 11 additions and 0 deletions
|
@ -54,6 +54,12 @@ path = "fuzz_targets/recursive.rs"
|
|||
test = false
|
||||
doc = false
|
||||
|
||||
[[bin]]
|
||||
name = "recursive_txn"
|
||||
path = "fuzz_targets/recursive_txn.rs"
|
||||
test = false
|
||||
doc = false
|
||||
|
||||
[[bin]]
|
||||
name = "encode"
|
||||
path = "fuzz_targets/encode.rs"
|
||||
|
|
5
crates/loro-internal/fuzz/fuzz_targets/recursive_txn.rs
Normal file
5
crates/loro-internal/fuzz/fuzz_targets/recursive_txn.rs
Normal file
|
@ -0,0 +1,5 @@
|
|||
#![no_main]
|
||||
use libfuzzer_sys::fuzz_target;
|
||||
use loro_internal::fuzz::recursive_txn::{test_multi_sites, Action};
|
||||
|
||||
fuzz_target!(|actions: [Action; 100]| { test_multi_sites(5, &mut actions.clone()) });
|
Loading…
Reference in a new issue