aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2023-09-12 09:03:56 +0200
committerMartin Fischer <martin@push-f.com>2023-09-28 10:36:08 +0200
commit14bc6f2cceed0fa578d6a1195266885bf57a5d4c (patch)
tree50988abce274aa5e4aa5905fb4bcc5c8cc4de652 /tests
parentad6ac5f0a825775c231e76cdc9016e61e54f4141 (diff)
chore: add BasicEmitter stub
Diffstat (limited to 'tests')
-rw-r--r--tests/test_spans.rs11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/test_spans.rs b/tests/test_spans.rs
index eb93d43..fdb9a78 100644
--- a/tests/test_spans.rs
+++ b/tests/test_spans.rs
@@ -10,7 +10,7 @@ use codespan_reporting::{
use html5tokenizer::{
offset::PosTrackingReader,
reader::{IntoReader, Reader},
- NaiveParser, Token,
+ NaiveParser, Token, TracingEmitter,
};
use insta::assert_snapshot;
use similar_asserts::assert_eq;
@@ -27,9 +27,12 @@ fn parser<R>(reader: impl IntoReader<'static, Reader = R>) -> Parser
where
R: Reader<Error = Infallible> + 'static,
{
- NaiveParser::new(PosTrackingReader::new(
- Box::new(reader.into_reader()) as Box<dyn Reader<Error = Infallible>>
- ))
+ NaiveParser::new_with_emitter(
+ PosTrackingReader::new(
+ Box::new(reader.into_reader()) as Box<dyn Reader<Error = Infallible>>
+ ),
+ TracingEmitter::default(),
+ )
}
fn test_and_annotate<S: AsRef<str> + Clone>(