MCPcopy Create free account
hub / github.com/github/gh-aw / TestParseGitHubToolsetsPreservesOrder

Function TestParseGitHubToolsetsPreservesOrder

pkg/workflow/github_toolsets_test.go:155–170  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

153}
154
155func 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
172func TestParseGitHubToolsetsDeduplication(t *testing.T) {
173 toolsetPermissionsMap := getToolsetPermissionsMap()

Callers

nothing calls this directly

Calls 2

ParseGitHubToolsetsFunction · 0.85
ErrorfMethod · 0.45

Tested by

no test coverage detected