- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestUserDefinedBytes (0.13 sec)
-
src/database/sql/convert_test.go
n = testing.AllocsPerRun(100, func() { test("string", "foo", "foo") }) if n > 1.5 && measureAllocs { t.Fatalf("allocs = %v; want max 1", n) } } // https://golang.org/issues/13905 func TestUserDefinedBytes(t *testing.T) { type userDefinedBytes []byte var u userDefinedBytes v := []byte("foo") convertAssign(&u, v) if &u[0] == &v[0] { t.Fatal("userDefinedBytes got potentially dirty driver memory")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 10 20:23:22 UTC 2024 - 17K bytes - Viewed (0)