MCPcopy Create free account
hub / github.com/github/gh-aw / BenchmarkNormalizeWhitespace_NoChange

Function BenchmarkNormalizeWhitespace_NoChange

pkg/stringutil/stringutil_test.go:298–303  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

296}
297
298func BenchmarkNormalizeWhitespace_NoChange(b *testing.B) {
299 content := "line1\nline2\nline3\n"
300 for b.Loop() {
301 NormalizeWhitespace(content)
302 }
303}
304
305func BenchmarkNormalizeWhitespace_ManyChanges(b *testing.B) {
306 content := "line1 \t \nline2 \t \nline3 \t \n\n\n"

Callers

nothing calls this directly

Calls 1

NormalizeWhitespaceFunction · 0.85

Tested by

no test coverage detected