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

Function test_parse_stop

atomic-agent/src/hooks/opencode.rs:806–812  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

804
805 #[test]
806 fn test_parse_stop() {
807 let hook = make_hook();
808 let input = br#"{"session_id": "s1", "turn_number": 3}"#;
809 let event = hook.parse_event(HookType::TurnEnd, input).unwrap();
810 assert_eq!(event.session_id, "s1");
811 assert_eq!(event.event_type, HookType::TurnEnd);
812 }
813
814 #[test]
815 fn test_parse_stop_with_error() {

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected