- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestBuilderAllocs (0.18 sec)
-
src/strings/builder_test.go
var b Builder if err := b.WriteByte('a'); err != nil { t.Error(err) } if err := b.WriteByte(0); err != nil { t.Error(err) } check(t, &b, "a\x00") } func TestBuilderAllocs(t *testing.T) { // Issue 23382; verify that copyCheck doesn't force the // Builder to escape and be heap allocated. n := testing.AllocsPerRun(10000, func() { var b Builder b.Grow(5)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 19 19:51:15 UTC 2024 - 8.1K bytes - Viewed (0)