Skip to content

Commit

Permalink
Cover missing file case
Browse files Browse the repository at this point in the history
  • Loading branch information
FollowTheProcess committed Nov 5, 2023
1 parent 9e94d8d commit 2b73b74
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ func TestFail(t *testing.T) {
func(tb testing.TB) { test.WantErr(tb, errors.New("uh oh"), false) },
func(tb testing.TB) { test.WantErr(tb, nilErr(), true) },
func(tb testing.TB) { test.File(tb, "file.txt", "wrong\n") },
func(tb testing.TB) { test.File(tb, "missing.txt", "wrong\n") },
}

for _, fn := range failFns {
Expand Down

0 comments on commit 2b73b74

Please sign in to comment.