(t *testing.T)
| 75 | } |
| 76 | |
| 77 | func TestBoolPtr_Independence(t *testing.T) { |
| 78 | // Verify that two calls return independent pointers |
| 79 | p1 := boolPtr(true) |
| 80 | p2 := boolPtr(true) |
| 81 | if p1 == p2 { |
| 82 | t.Error("boolPtr should return distinct pointers on each call") |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | func TestHasWriteAccess(t *testing.T) { |
| 87 | tests := []struct { |