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

Function BenchmarkTruncate_Short

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

Source from the content-addressed store, hash-verified

282}
283
284func BenchmarkTruncate_Short(b *testing.B) {
285 s := "short"
286 for b.Loop() {
287 Truncate(s, 10)
288 }
289}
290
291func BenchmarkTruncate_Long(b *testing.B) {
292 s := "this is a very very very very very long string that definitely needs truncation"

Callers

nothing calls this directly

Calls 1

TruncateFunction · 0.85

Tested by

no test coverage detected