- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestAppendAllocs (0.2 sec)
-
src/encoding/binary/binary_test.go
errs := fmt.Sprintf("binary.%s: some values are not fixed-sized in type *binary.Person", enc.name) if err.Error() != errs { t.Fatalf("got %q, want %q", err, errs) } }) } } func TestAppendAllocs(t *testing.T) { buf := make([]byte, 0, Size(&s)) var err error allocs := testing.AllocsPerRun(1, func() { _, err = Append(buf, LittleEndian, &s) }) if err != nil { t.Fatal("Append failed:", err)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 19:16:18 UTC 2024 - 25.4K bytes - Viewed (0)