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

Function test_parse_pre_tool_minimal

atomic-agent/src/hooks/cline.rs:814–819  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

812
813 #[test]
814 fn test_parse_pre_tool_minimal() {
815 let hook = make_hook();
816 let input = br#"{"taskId": "tool-3"}"#;
817 let event = hook.parse_event(HookType::PreToolUse, input).unwrap();
818 assert!(event.tool_name.is_none());
819 }
820
821 #[test]
822 fn test_parse_pre_tool_snake_case_tool_names() {

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected