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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

make_hookFunction · 0.70
unwrapMethod · 0.45
parse_eventMethod · 0.45

Tested by

no test coverage detected