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

Function test_parse_invalid_json

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

Source from the content-addressed store, hash-verified

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