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

Function TestBoolPtr_False

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

Source from the content-addressed store, hash-verified

65}
66
67func 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
77func TestBoolPtr_Independence(t *testing.T) {
78 // Verify that two calls return independent pointers

Callers

nothing calls this directly

Calls 2

boolPtrFunction · 0.70
ErrorfMethod · 0.45

Tested by

no test coverage detected