(t *testing.T)
| 610 | } |
| 611 | |
| 612 | func TestHasToolset(t *testing.T) { |
| 613 | tools := []ServerTool{ |
| 614 | mockTool("tool1", "toolset1", true), |
| 615 | } |
| 616 | |
| 617 | reg := mustBuild(t, NewBuilder().SetTools(tools).WithToolsets([]string{"all"})) |
| 618 | |
| 619 | if !reg.HasToolset("toolset1") { |
| 620 | t.Error("expected HasToolset to return true for existing toolset") |
| 621 | } |
| 622 | if reg.HasToolset("nonexistent") { |
| 623 | t.Error("expected HasToolset to return false for non-existent toolset") |
| 624 | } |
| 625 | } |
| 626 | |
| 627 | func TestAllTools(t *testing.T) { |
| 628 | tools := []ServerTool{ |
nothing calls this directly
no test coverage detected