(t *testing.T)
| 426 | } |
| 427 | |
| 428 | func TestToolsetIDs(t *testing.T) { |
| 429 | tools := []ServerTool{ |
| 430 | mockTool("tool1", "toolset_b", true), |
| 431 | mockTool("tool2", "toolset_a", true), |
| 432 | mockTool("tool3", "toolset_b", true), // duplicate toolset |
| 433 | } |
| 434 | |
| 435 | reg := mustBuild(t, NewBuilder().SetTools(tools)) |
| 436 | ids := reg.ToolsetIDs() |
| 437 | |
| 438 | if len(ids) != 2 { |
| 439 | t.Fatalf("Expected 2 unique toolset IDs, got %d", len(ids)) |
| 440 | } |
| 441 | |
| 442 | // Should be sorted |
| 443 | if ids[0] != "toolset_a" || ids[1] != "toolset_b" { |
| 444 | t.Errorf("Expected sorted IDs [toolset_a, toolset_b], got %v", ids) |
| 445 | } |
| 446 | } |
| 447 | |
| 448 | func TestToolsetDescriptions(t *testing.T) { |
| 449 | tools := []ServerTool{ |
nothing calls this directly
no test coverage detected