()
| 240 | |
| 241 | #[test] |
| 242 | fn test_human_gate() { |
| 243 | let mut acc = ProvenanceAccumulator::new("s1"); |
| 244 | let _goal = acc.append_goal("Fix bug", 1000); |
| 245 | let read = acc.append_tool_call("read", Some("c1"), None, None, None, None, 1001); |
| 246 | let gate = acc.append_human_gate("Delete old tokens?", 1002); |
| 247 | |
| 248 | assert_eq!(acc.stats().human_gate_count, 1); |
| 249 | assert!(acc |
| 250 | .edges() |
| 251 | .iter() |
| 252 | .any(|e| e.from == read && e.to == gate && e.kind == EdgeKind::BlockedBy)); |
| 253 | assert_eq!(acc.pending_human_gate.as_deref(), Some(gate.as_str())); |
| 254 | } |
| 255 | |
| 256 | #[test] |
| 257 | fn test_resolve_human_gate() { |
nothing calls this directly
no test coverage detected