Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
Add resolver test case for empty YAML doc (#445)
Browse files Browse the repository at this point in the history
  • Loading branch information
smukherj1 authored and rbe-toolchains-pr-bot committed Oct 17, 2019
1 parent 0e86910 commit 1b5dcb2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions k8s/go/cmd/resolver/resolver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,12 @@ val4: val5
want: []string{"val1", "val2", "val3", "val4", "val5"},
wantDocs: 5,
},
{
name: "EmptyDoc",
yamlDocs: "",
want: []string{},
wantDocs: 0,
},
}
for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
Expand Down

0 comments on commit 1b5dcb2

Please sign in to comment.