Variant of [`Assert::interrupted`] that returns an [`AssertResult`].
(self)
| 219 | |
| 220 | /// Variant of [`Assert::interrupted`] that returns an [`AssertResult`]. |
| 221 | pub fn try_interrupted(self) -> AssertResult { |
| 222 | if self.output.status.code().is_some() { |
| 223 | return Err(self.into_error(AssertReason::UnexpectedCompletion)); |
| 224 | } |
| 225 | Ok(self) |
| 226 | } |
| 227 | |
| 228 | /// Ensure the command returned the expected code. |
| 229 | /// |
no test coverage detected