Skip to content

Commit

Permalink
add test for empty object
Browse files Browse the repository at this point in the history
  • Loading branch information
drlau committed May 28, 2020
1 parent a49b211 commit b447f8f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions notifier/github/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,10 @@ func TestHasAnyLabelDefined(t *testing.T) {
},
want: false,
},
{
rl: ResultLabels{},
want: false,
},
}
for _, testCase := range testCases {
if testCase.rl.HasAnyLabelDefined() != testCase.want {
Expand Down Expand Up @@ -266,6 +270,11 @@ func TestIsResultLabels(t *testing.T) {
label: "",
want: false,
},
{
rl: ResultLabels{},
label: "",
want: false,
},
}
for _, testCase := range testCases {
if testCase.rl.IsResultLabel(testCase.label) != testCase.want {
Expand Down

0 comments on commit b447f8f

Please sign in to comment.