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

Function test_parse_event_invalid_json

atomic-agent/src/hooks/codex.rs:1058–1061  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1056
1057 #[test]
1058 fn test_parse_event_invalid_json() {
1059 let result = make_hook().parse_event(HookType::TurnEnd, b"not-json");
1060 assert!(matches!(result, Err(AgentError::HookParseFailed { .. })));
1061 }
1062
1063 #[test]
1064 fn test_detect_presence_with_local_codex_dir() {

Callers

nothing calls this directly

Calls 2

make_hookFunction · 0.70
parse_eventMethod · 0.45

Tested by

no test coverage detected