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

Function test_parse_pre_tool_use_passthrough

atomic-agent/src/hooks/cursor.rs:1229–1235  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1227 // PreToolUse passthrough (not a Cursor event, but handled gracefully)
1228 #[test]
1229 fn test_parse_pre_tool_use_passthrough() {
1230 let hook = make_hook();
1231 let input = br#"{"conversation_id": "c1"}"#;
1232 let event = hook.parse_event(HookType::PreToolUse, input).unwrap();
1233 assert_eq!(event.session_id, "c1");
1234 assert_eq!(event.event_type, HookType::PreToolUse);
1235 }
1236
1237 // Conversation ID stability across hook types
1238

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected