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

Method try_stdout

src/assert.rs:392–398  ·  view source on GitHub ↗

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

(self, pred: I)

Source from the content-addressed store, hash-verified

390
391 /// Variant of [`Assert::stdout`] that returns an [`AssertResult`].
392 pub fn try_stdout<I, P>(self, pred: I) -> AssertResult
393 where
394 I: IntoOutputPredicate<P>,
395 P: predicates_core::Predicate<[u8]>,
396 {
397 self.stdout_impl(&pred.into_output())
398 }
399
400 fn stdout_impl(self, pred: &dyn predicates_core::Predicate<[u8]>) -> AssertResult {
401 {

Callers 1

stdoutMethod · 0.80

Calls 2

stdout_implMethod · 0.80
into_outputMethod · 0.80

Tested by

no test coverage detected