(self)
| 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 { |
nothing calls this directly
no test coverage detected