MCPcopy Create free account
hub / github.com/github/gh-aw / TestBoolPtr_Independence

Function TestBoolPtr_Independence

pkg/cli/mcp_server_helpers_test.go:77–84  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

75}
76
77func 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
86func TestHasWriteAccess(t *testing.T) {
87 tests := []struct {

Callers

nothing calls this directly

Calls 2

boolPtrFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected