Skip to content

Commit

Permalink
test: add struct field names
Browse files Browse the repository at this point in the history
  • Loading branch information
afdesk committed Nov 28, 2024
1 parent 638827c commit 3cee92f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pkg/trivyk8s/trivyk8s_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,16 +98,16 @@ func TestInitResources(t *testing.T) {
want []string
}{
{
"scan only pods",
[]string{"pods"},
nil,
[]string{k8s.Pods},
name: "scan only pods",
includeKinds: []string{"pods"},
excludeKinds: nil,
want: []string{k8s.Pods},
},
{
"skip ClusterRoles, Deployments and Ingresses",
nil,
[]string{"deployments", "ingresses", "clusterroles"},
[]string{
name: "skip ClusterRoles, Deployments and Ingresses",
includeKinds: nil,
excludeKinds: []string{"deployments", "ingresses", "clusterroles"},
want: []string{
k8s.ClusterRoleBindings,
k8s.Nodes,
k8s.Pods,
Expand Down

0 comments on commit 3cee92f

Please sign in to comment.