Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
Signed-off-by: Yuri Shkuro <github@ysh.us>
  • Loading branch information
yurishkuro committed Sep 3, 2021
1 parent 0bc7985 commit e4eb68b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cmd/flags/flags_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,12 @@ func TestParseJaegerTags(t *testing.T) {

assert.Equal(t, expectedTags, ParseJaegerTags(jaegerTags))
}

func TestParseJaegerTagsPanic(t *testing.T) {
assert.PanicsWithValue(t,
"invalid Jaeger tag pair \"no-equals-sign\", expected key=value",
func() {
ParseJaegerTags("no-equals-sign")
},
)
}

0 comments on commit e4eb68b

Please sign in to comment.