(t *testing.T)
| 65 | } |
| 66 | |
| 67 | func TestBoolPtr_False(t *testing.T) { |
| 68 | p := boolPtr(false) |
| 69 | if p == nil { |
| 70 | t.Fatal("boolPtr(false) = nil, want non-nil pointer") |
| 71 | } |
| 72 | if *p != false { |
| 73 | t.Errorf("*boolPtr(false) = %v, want false", *p) |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | func TestBoolPtr_Independence(t *testing.T) { |
| 78 | // Verify that two calls return independent pointers |