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

Function TestBoolPtr_True

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

Source from the content-addressed store, hash-verified

55}
56
57func TestBoolPtr_True(t *testing.T) {
58 p := boolPtr(true)
59 if p == nil {
60 t.Fatal("boolPtr(true) = nil, want non-nil pointer")
61 }
62 if *p != true {
63 t.Errorf("*boolPtr(true) = %v, want true", *p)
64 }
65}
66
67func TestBoolPtr_False(t *testing.T) {
68 p := boolPtr(false)

Callers

nothing calls this directly

Calls 2

boolPtrFunction · 0.70
ErrorfMethod · 0.45

Tested by

no test coverage detected