MCPcopy Create free account
hub / github.com/It4innovations/hyperqueue / expect_parser_error

Function expect_parser_error

crates/hyperqueue/src/tests/utils.rs:18–21  ·  view source on GitHub ↗
(parser: impl CharParser<T>, input: &str)

Source from the content-addressed store, hash-verified

16}
17
18pub fn expect_parser_error<T: std::fmt::Debug>(parser: impl CharParser<T>, input: &str) -> String {
19 let error = parser.parse_text(input).unwrap_err();
20 format!("{error:?}")
21}

Callers

nothing calls this directly

Calls 1

parse_textMethod · 0.80

Tested by

no test coverage detected