MCPcopy Create free account
hub / github.com/assert-rs/assert_cmd / try_stderr

Method try_stderr

src/assert.rs:492–498  ·  view source on GitHub ↗

Variant of [`Assert::stderr`] that returns an [`AssertResult`].

(self, pred: I)

Source from the content-addressed store, hash-verified

490
491 /// Variant of [`Assert::stderr`] that returns an [`AssertResult`].
492 pub fn try_stderr<I, P>(self, pred: I) -> AssertResult
493 where
494 I: IntoOutputPredicate<P>,
495 P: predicates_core::Predicate<[u8]>,
496 {
497 self.stderr_impl(&pred.into_output())
498 }
499
500 fn stderr_impl(self, pred: &dyn predicates_core::Predicate<[u8]>) -> AssertResult {
501 {

Callers 1

stderrMethod · 0.80

Calls 2

stderr_implMethod · 0.80
into_outputMethod · 0.80

Tested by

no test coverage detected