MCPcopy Create free account
hub / github.com/Percona-Lab/mysql_random_data_load / NotNil

Function NotNil

testutils/testutils.go:236–241  ·  view source on GitHub ↗
(tb testing.TB, i interface{})

Source from the content-addressed store, hash-verified

234}
235
236func NotNil(tb testing.TB, i interface{}) {
237 if i == nil {
238 fmt.Printf("%s: expected value, got nil\n", caller())
239 tb.FailNow()
240 }
241}
242
243// equals fails the test if exp is not equal to act.
244func Equals(tb testing.TB, exp, act interface{}) {

Callers

nothing calls this directly

Calls 1

callerFunction · 0.85

Tested by

no test coverage detected