(t *testing.T)
| 85 | } |
| 86 | |
| 87 | func TestNewRegistryWithTools(t *testing.T) { |
| 88 | tools := []ServerTool{ |
| 89 | mockTool("tool1", "toolset1", true), |
| 90 | mockTool("tool2", "toolset1", false), |
| 91 | mockTool("tool3", "toolset2", true), |
| 92 | } |
| 93 | |
| 94 | reg := mustBuild(t, NewBuilder().SetTools(tools)) |
| 95 | |
| 96 | if len(reg.AllTools()) != 3 { |
| 97 | t.Errorf("Expected 3 tools, got %d", len(reg.AllTools())) |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | func TestAvailableTools_NoFilters(t *testing.T) { |
| 102 | tools := []ServerTool{ |
nothing calls this directly
no test coverage detected