Create a new result with just a session ID and phase. This is public so that other crates (e.g., `atomic-cli`) can construct `DispatchResult` values for testing hook response handling.
(session_id: impl Into<String>, phase: Phase)
| 113 | /// This is public so that other crates (e.g., `atomic-cli`) can construct |
| 114 | /// `DispatchResult` values for testing hook response handling. |
| 115 | pub fn new(session_id: impl Into<String>, phase: Phase) -> Self { |
| 116 | Self { |
| 117 | session_id: session_id.into(), |
| 118 | new_phase: phase, |
| 119 | change_recorded: None, |
| 120 | message: None, |
| 121 | warnings: Vec::new(), |
| 122 | } |
| 123 | } |
| 124 | |
| 125 | /// Set the recorded change outcome. |
| 126 | pub(crate) fn with_change(mut self, outcome: TurnRecordOutcome) -> Self { |
nothing calls this directly
no test coverage detected