MCPcopy Index your code
hub / github.com/ettle/strcase / assertTrue

Function assertTrue

assert.go:12–16  ·  view source on GitHub ↗

assertTrue will fail if the value is not true

(t testingT, value bool)

Source from the content-addressed store, hash-verified

10
11// assertTrue will fail if the value is not true
12func assertTrue(t testingT, value bool) {
13 if !value {
14 t.Fail()
15 }
16}
17
18// assertEqual will fail if the two strings are not equal
19func assertEqual(t testingT, expected, actual string) {

Callers 7

TestCaserAllFunction · 0.85
TestNewCaserFunction · 0.85
TestAssertTrueFunction · 0.85
TestIsUnicodeTypeFunction · 0.85
TestToUpperFunction · 0.85
TestToLowerFunction · 0.85
TestAllFunction · 0.85

Calls 1

FailMethod · 0.65

Tested by 7

TestCaserAllFunction · 0.68
TestNewCaserFunction · 0.68
TestAssertTrueFunction · 0.68
TestIsUnicodeTypeFunction · 0.68
TestToUpperFunction · 0.68
TestToLowerFunction · 0.68
TestAllFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…