MCPcopy Create free account
hub / github.com/stretchr/objx / True

Method True

std_assert_test.go:112–117  ·  view source on GitHub ↗
(t *testing.T, value bool, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

110 return true
111}
112func (a fatal) True(t *testing.T, value bool, msgAndArgs ...interface{}) {
113 t.Helper()
114 if !value {
115 a.fail(t, "expected true, got false")
116 }
117}
118
119func (a nonfatal) False(t *testing.T, value bool, msgAndArgs ...interface{}) bool {
120 t.Helper()

Callers 15

TestIsInterFunction · 0.45
TestIsInterSliceFunction · 0.45
TestIsBoolFunction · 0.45
TestIsBoolSliceFunction · 0.45
TestIsStrFunction · 0.45
TestIsStrSliceFunction · 0.45
TestIsIntFunction · 0.45
TestIsIntSliceFunction · 0.45
TestIsInt8Function · 0.45
TestIsInt8SliceFunction · 0.45
TestIsInt16Function · 0.45
TestIsInt16SliceFunction · 0.45

Calls 1

failMethod · 0.95

Tested by

no test coverage detected