Create a mock that returns an error.
(message: &str)
| 426 | |
| 427 | /// Create a mock that returns an error. |
| 428 | pub fn failure(message: &str) -> Self { |
| 429 | Self { |
| 430 | result: Err(message.to_string()), |
| 431 | } |
| 432 | } |
| 433 | } |
| 434 | |
| 435 | #[cfg(test)] |
nothing calls this directly
no outgoing calls
no test coverage detected