- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestBuilderGrow (0.27 sec)
-
src/strings/builder_test.go
// previously returned strings. b.WriteString("bbb") check(t, &b, "bbb") if want := "aaa"; s != want { t.Errorf("previous String result changed after Reset: got %q; want %q", s, want) } } func TestBuilderGrow(t *testing.T) { for _, growLen := range []int{0, 100, 1000, 10000, 100000} { p := bytes.Repeat([]byte{'a'}, growLen) allocs := testing.AllocsPerRun(100, func() { var b Builder
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 19 19:51:15 UTC 2024 - 8.1K bytes - Viewed (0)