Skip to content

Commit

Permalink
feat: add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
polsar88 committed Aug 25, 2024
1 parent 17231d3 commit 60e6a92
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/checks/latency_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ func Test_isErrorMatches_True(t *testing.T) {
Assert.True(isErrorMatches("a", []string{"a", "b"}))
Assert.True(isErrorMatches("aa", []string{"a", "b"}))
Assert.True(isErrorMatches("some error", []string{"a", "err"}))
Assert.True(isErrorMatches("error string", []string{"error string"}))
Assert.True(isErrorMatches("prefix error string suffix", []string{"error string"}))

Assert.True(isErrorMatches("aba", []string{"ab"}))
Assert.True(isErrorMatches("aba", []string{"ba"}))
Expand Down

0 comments on commit 60e6a92

Please sign in to comment.