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)
| 153 | /// This is public so that other crates (e.g., `atomic-cli`) can construct |
| 154 | /// `DispatchResult` values for testing hook response handling. |
| 155 | pub fn new(session_id: impl Into<String>, phase: Phase) -> Self { |
| 156 | Self { |
| 157 | session_id: session_id.into(), |
| 158 | new_phase: phase, |
| 159 | change_recorded: None, |
| 160 | view: None, |
| 161 | message: None, |
| 162 | warnings: Vec::new(), |
| 163 | } |
| 164 | } |
| 165 | |
| 166 | /// Set the recorded change outcome. |
| 167 | pub(crate) fn with_change(mut self, outcome: TurnRecordOutcome) -> Self { |
nothing calls this directly
no test coverage detected