Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
k1LoW committed Sep 15, 2021
1 parent 3e59a20 commit b91522f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions report/report_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,12 @@ func TestTable(t *testing.T) {
if got := r.Table(); got != tt.want {
t.Errorf("got\n%v\nwant\n%v", got, tt.want)
}
_ = r.String()
orig := r.String()
r.Coverage.FlushBlockCoverages()
_ = r.String()
flushed := r.String()
if len(orig) <= len(flushed) {
t.Error("FlushBlockCoverages error")
}
}
}

Expand Down

0 comments on commit b91522f

Please sign in to comment.