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

Function test_parse_before_tool_minimal

atomic-agent/src/hooks/pi.rs:742–747  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

740
741 #[test]
742 fn test_parse_before_tool_minimal() {
743 let hook = make_hook();
744 let input = br#"{"session_id": "s1"}"#;
745 let event = hook.parse_event(HookType::PreToolUse, input).unwrap();
746 assert!(event.tool_name.is_none());
747 }
748
749 // parse_event tests: after-tool (PostToolUse)
750

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected