use hadron_sclang::toolchain::{diagnostics, lexer, parser}; mod common; #[test] fn lex_fuzzer_findings() { common::for_each_file("tests/fuzz/lex/*", |buffer| { println!("lexing fuzzer finding file {}", buffer.name); let mut diags = diagnostics::NullDiagnosticConsumer {}; let _ = lexer::TokenizedBuffer::tokenize(buffer, &mut diags); }); } #[test] fn parse_fuzzer_findings() { common::for_each_file("tests/fuzz/parse/*", |buffer| { println!("parsing fuzzer finding file {}", buffer.name); let mut diags = diagnostics::NullDiagnosticConsumer {}; let tb = lexer::TokenizedBuffer::tokenize(buffer, &mut diags); let _ = parser::Tree::parse(&tb, &mut diags); }); }