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

Method interrupted

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

Source from the content-addressed store, hash-verified

210 /// Ensure the command aborted before returning a code.
211 #[track_caller]
212 pub fn interrupted(self) -> Self {
213 match self.try_interrupted() {
214 Ok(v) => v,
215 // Called manually so `#[track_caller]` is effective.
216 Err(e) => e.panic(),
217 }
218 }
219
220 /// Variant of [`Assert::interrupted`] that returns an [`AssertResult`].
221 pub fn try_interrupted(self) -> AssertResult {

Callers

nothing calls this directly

Calls 2

try_interruptedMethod · 0.80
panicMethod · 0.80

Tested by

no test coverage detected