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

Function test_parse_pre_tool_snake_case_alias

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

Source from the content-addressed store, hash-verified

801
802 #[test]
803 fn test_parse_pre_tool_snake_case_alias() {
804 let hook = make_hook();
805 let input = br#"{
806 "taskId": "tool-2",
807 "pre_tool_use": {"tool": "read_file"}
808 }"#;
809 let event = hook.parse_event(HookType::PreToolUse, input).unwrap();
810 assert_eq!(event.tool_name.as_deref(), Some("read_file"));
811 }
812
813 #[test]
814 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