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

Method failure

src/assert.rs:194–200  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

192 /// ```
193 #[track_caller]
194 pub fn failure(self) -> Self {
195 match self.try_failure() {
196 Ok(v) => v,
197 // Called manually so `#[track_caller]` is effective.
198 Err(e) => e.panic(),
199 }
200 }
201
202 /// Variant of [`Assert::failure`] that returns an [`AssertResult`].
203 pub fn try_failure(self) -> AssertResult {

Callers 3

failure_exampleFunction · 0.80
lib_exampleFunction · 0.80
timeout_exampleFunction · 0.80

Calls 2

try_failureMethod · 0.80
panicMethod · 0.80

Tested by 3

failure_exampleFunction · 0.64
lib_exampleFunction · 0.64
timeout_exampleFunction · 0.64