Adds one planning step that fails during CPU planning.
(mut self, message: impl Into<String>)
| 398 | |
| 399 | /// Adds one planning step that fails during CPU planning. |
| 400 | pub(crate) fn return_error(mut self, message: impl Into<String>) -> Self { |
| 401 | self.steps.push(PlannerStep::Error { |
| 402 | error: MockError(message.into()), |
| 403 | }); |
| 404 | self |
| 405 | } |
| 406 | |
| 407 | /// Finalizes the configured mock planner. |
| 408 | pub(crate) fn build(self) -> MockPlanner { |
no test coverage detected