(t *testing.T)
| 153 | } |
| 154 | |
| 155 | func TestParseGitHubToolsetsPreservesOrder(t *testing.T) { |
| 156 | // Test that specific toolsets maintain their order |
| 157 | input := "repos,issues,pull_requests" |
| 158 | result := ParseGitHubToolsets(input) |
| 159 | expected := []string{"repos", "issues", "pull_requests"} |
| 160 | |
| 161 | if len(result) != len(expected) { |
| 162 | t.Fatalf("Expected %d toolsets, got %d", len(expected), len(result)) |
| 163 | } |
| 164 | |
| 165 | for i, toolset := range expected { |
| 166 | if result[i] != toolset { |
| 167 | t.Errorf("Expected toolset[%d] to be %s, got %s", i, toolset, result[i]) |
| 168 | } |
| 169 | } |
| 170 | } |
| 171 | |
| 172 | func TestParseGitHubToolsetsDeduplication(t *testing.T) { |
| 173 | toolsetPermissionsMap := getToolsetPermissionsMap() |
nothing calls this directly
no test coverage detected