- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestValue_Cap (0.13 sec)
-
src/reflect/all_test.go
s := Kind(x).String() want := "kind-1" if s != want { t.Fatalf("Kind(-1).String() = %q, want %q", s, want) } } type ( namedBool bool namedBytes []byte ) func TestValue_Cap(t *testing.T) { a := &[3]int{1, 2, 3} v := ValueOf(a) if v.Cap() != cap(a) { t.Errorf("Cap = %d want %d", v.Cap(), cap(a)) } a = nil v = ValueOf(a) if v.Cap() != cap(a) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 218.8K bytes - Viewed (0)