88 "github.com/stretchr/testify/require"
99)
1010
11- func TestTransformDefault (t * testing.T ) {
11+ func TestTransformSpecialToolsets (t * testing.T ) {
1212 tests := []struct {
1313 name string
1414 input []string
@@ -19,6 +19,26 @@ func TestTransformDefault(t *testing.T) {
1919 input : []string {},
2020 expected : []string {},
2121 },
22+ {
23+ name : "all only" ,
24+ input : []string {"all" },
25+ expected : []string {"all" },
26+ },
27+ {
28+ name : "all with other toolsets" ,
29+ input : []string {"all" , "actions" , "gists" },
30+ expected : []string {"all" },
31+ },
32+ {
33+ name : "all at the end" ,
34+ input : []string {"actions" , "gists" , "all" },
35+ expected : []string {"all" },
36+ },
37+ {
38+ name : "all with default" ,
39+ input : []string {"default" , "all" , "actions" },
40+ expected : []string {"all" },
41+ },
2242 {
2343 name : "default only" ,
2444 input : []string {"default" },
@@ -104,7 +124,7 @@ func TestTransformDefault(t *testing.T) {
104124
105125 for _ , tt := range tests {
106126 t .Run (tt .name , func (t * testing.T ) {
107- result := transformDefault (tt .input )
127+ result := transformSpecialToolsets (tt .input )
108128
109129 // Check that the result has the correct length
110130 require .Len (t , result , len (tt .expected ), "result length should match expected length" )
@@ -132,10 +152,10 @@ func TestTransformDefault(t *testing.T) {
132152 }
133153}
134154
135- func TestTransformDefaultWithActualDefaults (t * testing.T ) {
155+ func TestTransformSpecialToolsetsWithActualDefaults (t * testing.T ) {
136156 // This test verifies that the function uses the actual default toolsets from GetDefaultToolsetIDs()
137157 input := []string {"default" }
138- result := transformDefault (input )
158+ result := transformSpecialToolsets (input )
139159
140160 defaultToolsets := github .GetDefaultToolsetIDs ()
141161
0 commit comments