MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / assert

Function assert

IceFireDB-PubSub/test/test_test.go:15–20  ·  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

13
14// assert fails the test if the condition is false.
15func assert(tb testing.TB, condition bool, msg string, v ...interface{}) {
16 tb.Helper()
17 if !condition {
18 tb.Errorf(msg, v...)
19 }
20}
21
22// ok fails the test if an err is not nil.
23func ok(tb testing.TB, err error) {

Callers 7

TestSpopFunction · 0.70
TestSrandmemberFunction · 0.70
TestSortedSetRemFunction · 0.70
TestRpushxFunction · 0.70
TestIncrFunction · 0.70
TestIncrbyfloatFunction · 0.70
TestHashDelFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected