MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_parse_turn_end_unsupported

Function test_parse_turn_end_unsupported

atomic-agent/src/hooks/copilot.rs:740–747  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

738
739 #[test]
740 fn test_parse_turn_end_unsupported() {
741 let hook = make_hook();
742 let input = br#"{"session_id": "s1"}"#;
743 let result = hook.parse_event(HookType::TurnEnd, input);
744 assert!(result.is_err());
745 let err = result.unwrap_err();
746 assert!(matches!(err, AgentError::HookParseFailed { .. }));
747 }
748
749 // ── parse_event tests: error cases ──────────────────────────────
750

Callers

nothing calls this directly

Calls 2

make_hookFunction · 0.70
parse_eventMethod · 0.45

Tested by

no test coverage detected