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

Function test_parse_invalid_json

atomic-agent/src/hooks/grok.rs:645–651  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

643
644 #[test]
645 fn test_parse_invalid_json() {
646 let hook = make_hook();
647 let err = hook
648 .parse_event(HookType::TurnEnd, b"not-json")
649 .unwrap_err();
650 assert!(matches!(err, AgentError::HookParseFailed { .. }));
651 }
652
653 #[test]
654 fn test_missing_session_id_fallback() {

Callers

nothing calls this directly

Calls 2

make_hookFunction · 0.70
parse_eventMethod · 0.45

Tested by

no test coverage detected