Skip to content

Commit

Permalink
increase coverage where possible, ie not in init()
Browse files Browse the repository at this point in the history
  • Loading branch information
ldemailly committed Jul 17, 2024
1 parent 086f2e4 commit 531e709
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions logger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -931,6 +931,9 @@ func TestConfigFromEnvOk(t *testing.T) {
}

func TestInvalidFile(t *testing.T) {
if isValid(nil) {
t.Errorf("expected nil to be invalid")
}
prev := jWriter.w
invalidFile := os.NewFile(^uintptr(0), "invalid-file")
jWriter.w = invalidFile
Expand Down

0 comments on commit 531e709

Please sign in to comment.