MCPcopy Index your code
hub / github.com/assert-rs/assert_cmd / stderr

Method stderr

src/assert.rs:479–489  ·  view source on GitHub ↗
(self, pred: I)

Source from the content-addressed store, hash-verified

477 ///
478 #[track_caller]
479 pub fn stderr<I, P>(self, pred: I) -> Self
480 where
481 I: IntoOutputPredicate<P>,
482 P: predicates_core::Predicate<[u8]>,
483 {
484 match self.try_stderr(pred) {
485 Ok(v) => v,
486 // Called manually so `#[track_caller]` is effective.
487 Err(e) => e.panic(),
488 }
489 }
490
491 /// Variant of [`Assert::stderr`] that returns an [`AssertResult`].
492 pub fn try_stderr<I, P>(self, pred: I) -> AssertResult

Callers 2

spawnMethod · 0.80
stderr_exampleFunction · 0.80

Calls 2

try_stderrMethod · 0.80
panicMethod · 0.80

Tested by 1

stderr_exampleFunction · 0.64