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

Function test_parse_pre_tool_minimal

atomic-agent/src/hooks/copilot.rs:687–693  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

685
686 #[test]
687 fn test_parse_pre_tool_minimal() {
688 let hook = make_hook();
689 let input = br#"{"session_id": "s1"}"#;
690 let event = hook.parse_event(HookType::PreToolUse, input).unwrap();
691 assert!(event.tool_name.is_none());
692 assert!(event.tool_use_id.is_none());
693 }
694
695 // ── parse_event tests: post-tool (PostToolUse) ──────────────────
696

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected