Whether any capture evidence exists for one turn of one session.
(sessions_dir: &Path, session_id: &str, turn: u32)
| 140 | |
| 141 | /// Whether any capture evidence exists for one turn of one session. |
| 142 | pub fn has_capture(sessions_dir: &Path, session_id: &str, turn: u32) -> bool { |
| 143 | capture_files(sessions_dir, session_id, turn) |
| 144 | .map(|files| !files.is_empty()) |
| 145 | .unwrap_or(false) |
| 146 | } |
| 147 | |
| 148 | impl ManagedCommitCapture { |
| 149 | /// The canonical MAC input: the capture's JSON with `mac` cleared. |
no test coverage detected