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

Method stdout

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

Source from the content-addressed store, hash-verified

377 ///
378 #[track_caller]
379 pub fn stdout<I, P>(self, pred: I) -> Self
380 where
381 I: IntoOutputPredicate<P>,
382 P: predicates_core::Predicate<[u8]>,
383 {
384 match self.try_stdout(pred) {
385 Ok(v) => v,
386 // Called manually so `#[track_caller]` is effective.
387 Err(e) => e.panic(),
388 }
389 }
390
391 /// Variant of [`Assert::stdout`] that returns an [`AssertResult`].
392 pub fn try_stdout<I, P>(self, pred: I) -> AssertResult

Callers 6

spawnMethod · 0.80
cargo_binaryFunction · 0.80
stdout_stringFunction · 0.80
stdout_exampleFunction · 0.80
lib_exampleFunction · 0.80

Calls 2

try_stdoutMethod · 0.80
panicMethod · 0.80

Tested by 5

cargo_binaryFunction · 0.64
stdout_stringFunction · 0.64
stdout_exampleFunction · 0.64
lib_exampleFunction · 0.64