Skip to main content

mock_tool_attribution

Macro mock_tool_attribution 

Source
macro_rules! mock_tool_attribution {
    ($($ty:ty),+ $(,)?) => { ... };
}
Expand description

Bulk-impl Attributable for one or more Tool mock types in a test module. Every type gets Role::Tool(ToolKind::Plugin) and uses the mock’s own name() as the alias — sufficient for test scaffolding where individual kinds don’t matter.

zeroclaw_api::mock_tool_attribution!(CountingTool, FailingTool);