MockTool 模拟工具
| 9 | |
| 10 | // MockTool 模拟工具 |
| 11 | type MockTool struct { |
| 12 | name string |
| 13 | description string |
| 14 | executeFunc func(context.Context, map[string]any, *ToolContext) (any, error) |
| 15 | callCount int |
| 16 | } |
| 17 | |
| 18 | func (m *MockTool) Name() string { |
| 19 | return m.name |
nothing calls this directly
no outgoing calls
no test coverage detected