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

Function test_parse_stop_with_error

atomic-agent/src/hooks/pi.rs:720–725  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

718
719 #[test]
720 fn test_parse_stop_with_error() {
721 let hook = make_hook();
722 let input = br#"{"session_id": "s1", "error": true}"#;
723 let event = hook.parse_event(HookType::TurnEnd, input).unwrap();
724 assert_eq!(event.session_id, "s1");
725 }
726
727 // parse_event tests: before-tool (PreToolUse)
728

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected