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

Function test_parse_empty_input

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

Source from the content-addressed store, hash-verified

636
637 #[test]
638 fn test_parse_empty_input() {
639 let hook = make_hook();
640 let err = hook.parse_event(HookType::TurnEnd, b"").unwrap_err();
641 assert!(matches!(err, AgentError::HookInputEmpty { .. }));
642 }
643
644 #[test]
645 fn test_parse_invalid_json() {

Callers

nothing calls this directly

Calls 2

make_hookFunction · 0.70
parse_eventMethod · 0.45

Tested by

no test coverage detected