(t *testing.T)
| 8 | ) |
| 9 | |
| 10 | func TestAddDefaultToolset(t *testing.T) { |
| 11 | tests := []struct { |
| 12 | name string |
| 13 | input []string |
| 14 | expected []string |
| 15 | }{ |
| 16 | { |
| 17 | name: "no default keyword - return unchanged", |
| 18 | input: []string{"actions", "gists"}, |
| 19 | expected: []string{"actions", "gists"}, |
| 20 | }, |
| 21 | { |
| 22 | name: "default keyword present - expand and remove default", |
| 23 | input: []string{"default"}, |
| 24 | expected: []string{ |
| 25 | "context", |
| 26 | "copilot", |
| 27 | "repos", |
| 28 | "issues", |
| 29 | "pull_requests", |
| 30 | "users", |
| 31 | }, |
| 32 | }, |
| 33 | { |
| 34 | name: "default with additional toolsets", |
| 35 | input: []string{"default", "actions", "gists"}, |
| 36 | expected: []string{ |
| 37 | "actions", |
| 38 | "gists", |
| 39 | "context", |
| 40 | "copilot", |
| 41 | "repos", |
| 42 | "issues", |
| 43 | "pull_requests", |
| 44 | "users", |
| 45 | }, |
| 46 | }, |
| 47 | { |
| 48 | name: "default with overlapping toolsets - should not duplicate", |
| 49 | input: []string{"default", "context", "repos"}, |
| 50 | expected: []string{ |
| 51 | "context", |
| 52 | "copilot", |
| 53 | "repos", |
| 54 | "issues", |
| 55 | "pull_requests", |
| 56 | "users", |
| 57 | }, |
| 58 | }, |
| 59 | { |
| 60 | name: "empty input", |
| 61 | input: []string{}, |
| 62 | expected: []string{}, |
| 63 | }, |
| 64 | } |
| 65 | |
| 66 | for _, tt := range tests { |
| 67 | t.Run(tt.name, func(t *testing.T) { |
nothing calls this directly
no test coverage detected