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

Function test_parse_before_tool_minimal

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

Source from the content-addressed store, hash-verified

812
813 #[test]
814 fn test_parse_before_tool_minimal() {
815 let hook = make_hook();
816 let input = br#"{"session_id": "s1"}"#;
817 let event = hook.parse_event(HookType::PreToolUse, input).unwrap();
818 assert!(event.tool_name.is_none());
819 assert!(event.tool_use_id.is_none());
820 }
821
822 // parse_event tests: after-tool (PostToolUse)
823

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected