(t *testing.T)
| 70 | } |
| 71 | |
| 72 | func TestNewExecutor(t *testing.T) { |
| 73 | toolMap := map[string]tools.Tool{ |
| 74 | "tool1": newMockTool("tool1", "result1", nil), |
| 75 | } |
| 76 | |
| 77 | executor := NewExecutor(toolMap) |
| 78 | if executor == nil { |
| 79 | t.Fatal("NewExecutor returned nil") |
| 80 | } |
| 81 | |
| 82 | if len(executor.tools) != 1 { |
| 83 | t.Errorf("expected 1 tool, got %d", len(executor.tools)) |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | func TestExecutorWithCallbacks(t *testing.T) { |
| 88 | toolMap := map[string]tools.Tool{ |
nothing calls this directly
no test coverage detected