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

Function BenchmarkNormalizeWhitespace

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

Source from the content-addressed store, hash-verified

167}
168
169func BenchmarkNormalizeWhitespace(b *testing.B) {
170 content := "line1 \nline2\t\nline3 \t\nline4\n\n"
171 for b.Loop() {
172 NormalizeWhitespace(content)
173 }
174}
175
176// Additional edge case tests
177

Callers

nothing calls this directly

Calls 1

NormalizeWhitespaceFunction · 0.85

Tested by

no test coverage detected