MCPcopy
hub / github.com/dgraph-io/dgraph / AssertTruef

Function AssertTruef

x/error.go:90–94  ·  view source on GitHub ↗

AssertTruef is AssertTrue with extra info.

(b bool, format string, args ...interface{})

Source from the content-addressed store, hash-verified

88
89// AssertTruef is AssertTrue with extra info.
90func AssertTruef(b bool, format string, args ...interface{}) {
91 if !b {
92 log.Fatalf("%+v", errors.Errorf(format, args...))
93 }
94}
95
96// AssertTruefNoTrace is AssertTruef without a stack trace.
97func AssertTruefNoTrace(b bool, format string, args ...interface{}) {

Callers 15

parentCoverTokensFunction · 0.92
GetGeoTokensFunction · 0.92
queryTokensGeoFunction · 0.92
isWithinMethod · 0.92
containsMethod · 0.92
intersectsMethod · 0.92
peekMethod · 0.92
parseFilterFunction · 0.92
popAssertMethod · 0.92
peekMethod · 0.92
parseMathFuncFunction · 0.92
stringHelperMethod · 0.92

Calls 2

FatalfMethod · 0.80
ErrorfMethod · 0.45

Tested by

no test coverage detected