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

Function test_parse_event_invalid_json

atomic-agent/src/hooks/kiro.rs:544–552  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

542
543 #[test]
544 fn test_parse_event_invalid_json() {
545 let hook = make_hook();
546 let result = hook.parse_event(HookType::TurnStart, b"not json");
547 assert!(result.is_err());
548 assert!(matches!(
549 result.unwrap_err(),
550 AgentError::HookParseFailed { .. }
551 ));
552 }
553
554 // --- parse_event: missing session_id generates fallback ---
555

Callers

nothing calls this directly

Calls 2

make_hookFunction · 0.70
parse_eventMethod · 0.45

Tested by

no test coverage detected