()
| 303 | |
| 304 | #[test] |
| 305 | fn test_human_gate() { |
| 306 | let mut acc = ProvenanceAccumulator::new("s1"); |
| 307 | let _goal = acc.append_goal("Fix bug", 1000); |
| 308 | let read = acc.append_tool_call("read", Some("c1"), None, None, None, None, 1001); |
| 309 | let gate = acc.append_human_gate("Delete old tokens?", 1002); |
| 310 | |
| 311 | assert_eq!(acc.stats().human_gate_count, 1); |
| 312 | assert!(acc |
| 313 | .edges() |
| 314 | .iter() |
| 315 | .any(|e| e.from == read && e.to == gate && e.kind == EdgeKind::BlockedBy)); |
| 316 | assert_eq!(acc.pending_human_gate.as_deref(), Some(gate.as_str())); |
| 317 | } |
| 318 | |
| 319 | #[test] |
| 320 | fn test_resolve_human_gate() { |
nothing calls this directly
no test coverage detected