Skip to content

Commit

Permalink
Add allocs to benchmark output
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrks committed Feb 12, 2017
1 parent 4713703 commit 418c82e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wrap_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ func TestLineWithPrefix(t *testing.T) {
}

func benchmarkLine(b *testing.B, limit int) {
b.ReportAllocs()
for i := 0; i < b.N; i++ {
Line(loremIpsums[0], limit)
}
Expand Down

0 comments on commit 418c82e

Please sign in to comment.