test: add txn fuzz

This commit is contained in:
leeeon233 2023-03-06 21:49:47 +08:00
parent d1d242578f
commit 707fdc5b55
2 changed files with 11 additions and 0 deletions

View file

@ -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"

View 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()) });