@@ -348,7 +348,7 @@ func TestDiscoveryAndFilterPropagation(t *testing.T) {
348348 }{
349349 {"empty returns empty (ParseCLI sets default)" , []string {}, []string {}},
350350 {"auto keyword" , []string {"auto" }, Auto },
351- {"all keyword" , []string {"all" }, allDiscovery () },
351+ {"all keyword" , []string {"all" }, All },
352352 {"resources keyword" , []string {"resources" }, AllAPIResources },
353353 {"explicit single" , []string {"s3-buckets" }, []string {DiscoveryS3Buckets }},
354354 {
@@ -357,7 +357,7 @@ func TestDiscoveryAndFilterPropagation(t *testing.T) {
357357 []string {DiscoveryS3Buckets , DiscoveryInstances , DiscoveryIAMUsers },
358358 },
359359 {"auto takes precedence" , []string {"auto" , "s3-buckets" }, Auto },
360- {"all takes precedence" , []string {"all" , "s3-buckets" }, allDiscovery () },
360+ {"all takes precedence" , []string {"all" , "s3-buckets" }, All },
361361 }
362362
363363 for _ , tc := range cases {
@@ -462,7 +462,7 @@ func TestGetDiscoveryTargets(t *testing.T) {
462462 {
463463 name : "all" ,
464464 targets : []string {"all" },
465- want : allDiscovery () ,
465+ want : All ,
466466 },
467467 {
468468 name : "auto" ,
@@ -482,12 +482,12 @@ func TestGetDiscoveryTargets(t *testing.T) {
482482 {
483483 name : "all and resources" ,
484484 targets : []string {"all" , "resources" },
485- want : allDiscovery () ,
485+ want : All ,
486486 },
487487 {
488488 name : "all, auto and resources" ,
489489 targets : []string {"all" , "resources" },
490- want : allDiscovery () ,
490+ want : All ,
491491 },
492492 {
493493 name : "random" ,
0 commit comments