MCPcopy
hub / github.com/connectrpc/connect-go / True

Function True

internal/assert/assert.go:131–138  ·  view source on GitHub ↗

True asserts that "got" is true.

(tb testing.TB, got bool, options ...Option)

Source from the content-addressed store, hash-verified

129
130// True asserts that "got" is true.
131func True(tb testing.TB, got bool, options ...Option) bool {
132 tb.Helper()
133 if got {
134 return true
135 }
136 report(tb, got, true, "assert.True", false /* showWant */, options...)
137 return false
138}
139
140// Panics asserts that the function called panics.
141func Panics(tb testing.TB, panicker func(), options ...Option) {

Calls 1

reportFunction · 0.85