Add fuzzing tests

This commit is contained in:
link2xt
2022-12-27 09:17:19 +00:00
parent 1e351bd05f
commit 4a982fe632
11 changed files with 3573 additions and 0 deletions

8
src/fuzzing.rs Normal file
View File

@@ -0,0 +1,8 @@
/// Fuzzing target for simplify().
///
/// Calls simplify() and panics if simplify() panics.
/// Does not return any vaule to avoid exposing internal crate types.
#[cfg(fuzzing)]
pub fn simplify(mut input: String, is_chat_message: bool) {
crate::simplify::simplify(input, is_chat_message);
}