From 1adee631152c0ce46caf622e49686e94c3aff3ac Mon Sep 17 00:00:00 2001 From: Ed Page Date: Thu, 11 Sep 2025 16:30:31 -0500 Subject: [PATCH] feat(harness): Give callers responsibility for ignoreds --- crates/libtest2-harness/src/case.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/libtest2-harness/src/case.rs b/crates/libtest2-harness/src/case.rs index 64e21f8..2f94533 100644 --- a/crates/libtest2-harness/src/case.rs +++ b/crates/libtest2-harness/src/case.rs @@ -69,14 +69,16 @@ impl RunError { Self::with_cause(Message(cause.to_string())) } - pub(crate) fn ignore() -> Self { + /// Should not be called with `libtest_lexarg::RunIgnored::Yes` + pub fn ignore() -> Self { Self { status: notify::MessageKind::Ignored, cause: None, } } - pub(crate) fn ignore_for(reason: String) -> Self { + /// Should not be called with `libtest_lexarg::RunIgnored::Yes` + pub fn ignore_for(reason: String) -> Self { Self { status: notify::MessageKind::Ignored, cause: Some(Box::new(Message(reason))),