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))),