From 9aadb18186c0804f6cc6179bf8ea993337dc669d Mon Sep 17 00:00:00 2001 From: Nathaniel Brough Date: Tue, 5 Dec 2023 10:26:58 -0800 Subject: Add simple fuzz testing (#2581) --- tests/fuzz/src/parse.rs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/fuzz/src/parse.rs (limited to 'tests/fuzz/src/parse.rs') diff --git a/tests/fuzz/src/parse.rs b/tests/fuzz/src/parse.rs new file mode 100644 index 00000000..f151661a --- /dev/null +++ b/tests/fuzz/src/parse.rs @@ -0,0 +1,8 @@ +#![no_main] + +use libfuzzer_sys::fuzz_target; +use typst_syntax::parse; + +fuzz_target!(|text: &str| { + std::hint::black_box(parse(text)); +}); -- cgit v1.2.3