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

Function test_parse_empty_input

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

Source from the content-addressed store, hash-verified

635
636 #[test]
637 fn test_parse_empty_input() {
638 let hook = make_hook();
639 let err = hook.parse_event(HookType::TurnEnd, b"").unwrap_err();
640 assert!(matches!(err, AgentError::HookInputEmpty { .. }));
641 }
642
643 #[test]
644 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