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:842–848  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

840
841 #[test]
842 fn test_parse_before_tool_minimal() {
843 let hook = make_hook();
844 let input = br#"{"session_id": "s1"}"#;
845 let event = hook.parse_event(HookType::PreToolUse, input).unwrap();
846 assert!(event.tool_name.is_none());
847 assert!(event.tool_use_id.is_none());
848 }
849
850 // parse_event tests: after-tool (PostToolUse)
851

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected