Struct assert_cmd::assert::StrOutputPredicate
source ·
[−]Expand description
predicates_core::Predicate used by IntoOutputPredicate
for
Predicate<str>
.
Example
use assert_cmd::prelude::*;
use std::process::Command;
use predicates::prelude::*;
Command::cargo_bin("bin_fixture")
.unwrap()
.env("stdout", "hello")
.env("stderr", "world")
.assert()
.stderr(predicate::str::diff("world\n"));
Trait Implementations
type Predicate = StrOutputPredicate<P>
type Predicate = StrOutputPredicate<P>
The type of the predicate being returned.
Convert to a predicate for testing a path.
Auto Trait Implementations
impl<P> RefUnwindSafe for StrOutputPredicate<P> where
P: RefUnwindSafe,
impl<P> Send for StrOutputPredicate<P> where
P: Send,
impl<P> Sync for StrOutputPredicate<P> where
P: Sync,
impl<P> Unpin for StrOutputPredicate<P> where
P: Unpin,
impl<P> UnwindSafe for StrOutputPredicate<P> where
P: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
type Predicate = P
type Predicate = P
The type of the predicate being returned.
Convert to a predicate for testing a path.
Returns a FileContentPredicate
that adapts Self
to a file content Predicate
. Read more
Name a predicate expression. Read more