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

Function test_parse_pre_tool_snake_case

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

Source from the content-addressed store, hash-verified

681
682 #[test]
683 fn test_parse_pre_tool_snake_case() {
684 let hook = make_hook();
685 let input = br#"{"session_id": "s1", "tool_name": "bash", "tool_use_id": "call-1"}"#;
686 let event = hook.parse_event(HookType::PreToolUse, input).unwrap();
687 assert_eq!(event.tool_name.as_deref(), Some("bash"));
688 assert_eq!(event.tool_use_id.as_deref(), Some("call-1"));
689 }
690
691 #[test]
692 fn test_parse_pre_tool_minimal() {

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected