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

Function Assert

testutils/testutils.go:199–204  ·  view source on GitHub ↗

assert fails the test if the condition is false.

(tb testing.TB, condition bool, msg string, v ...interface{})

Source from the content-addressed store, hash-verified

197
198// assert fails the test if the condition is false.
199func Assert(tb testing.TB, condition bool, msg string, v ...interface{}) {
200 if !condition {
201 fmt.Printf("%s "+msg+"\n\n", append([]interface{}{caller()}, v...)...)
202 tb.FailNow()
203 }
204}
205
206// ok fails the test if an err is not nil.
207func Ok(tb testing.TB, err error, args ...interface{}) {

Callers

nothing calls this directly

Calls 1

callerFunction · 0.85

Tested by

no test coverage detected