Skip to content

Commit 1adee63

Browse files
committed
feat(harness): Give callers responsibility for ignoreds
1 parent efcda24 commit 1adee63

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

crates/libtest2-harness/src/case.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,16 @@ impl RunError {
6969
Self::with_cause(Message(cause.to_string()))
7070
}
7171

72-
pub(crate) fn ignore() -> Self {
72+
/// Should not be called with `libtest_lexarg::RunIgnored::Yes`
73+
pub fn ignore() -> Self {
7374
Self {
7475
status: notify::MessageKind::Ignored,
7576
cause: None,
7677
}
7778
}
7879

79-
pub(crate) fn ignore_for(reason: String) -> Self {
80+
/// Should not be called with `libtest_lexarg::RunIgnored::Yes`
81+
pub fn ignore_for(reason: String) -> Self {
8082
Self {
8183
status: notify::MessageKind::Ignored,
8284
cause: Some(Box::new(Message(reason))),

0 commit comments

Comments
 (0)