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

Function test_parse_stop_with_error

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

Source from the content-addressed store, hash-verified

785
786 #[test]
787 fn test_parse_stop_with_error() {
788 let hook = make_hook();
789 let input = br#"{"session_id": "s1", "turn_number": 2, "error": true}"#;
790 let event = hook.parse_event(HookType::TurnEnd, input).unwrap();
791 let raw = event.raw_json.unwrap();
792 assert_eq!(raw["error"], true);
793 }
794
795 // parse_event tests: before-tool (PreToolUse)
796

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected