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

Function test_parse_post_tool_no_tool_name

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

Source from the content-addressed store, hash-verified

887
888 #[test]
889 fn test_parse_post_tool_no_tool_name() {
890 let hook = make_hook();
891 let input = br#"{"taskId": "tool-6"}"#;
892 let event = hook.parse_event(HookType::PostToolUse, input).unwrap();
893 assert!(event.tool_name.is_none());
894 }
895
896 #[test]
897 fn test_parse_post_tool_no_duration() {

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected