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

Function ok

IceFireDB-PubSub/test/test_test.go:23–28  ·  view source on GitHub ↗

ok fails the test if an err is not nil.

(tb testing.TB, err error)

Source from the content-addressed store, hash-verified

21
22// ok fails the test if an err is not nil.
23func ok(tb testing.TB, err error) {
24 tb.Helper()
25 if err != nil {
26 tb.Errorf("unexpected error: %s", err.Error())
27 }
28}
29
30func equalFloat(tb testing.TB, exp, act float64) {
31 if exp-act > 0.00000001 || exp-act < -0.00000001 {

Callers 15

TestSaddFunction · 0.70
TestSismemberFunction · 0.70
TestSremFunction · 0.70
TestSpopFunction · 0.70
TestSrandmemberFunction · 0.70
TestSscanFunction · 0.70
TestSortedSetFunction · 0.70
TestSortedSetAddFunction · 0.70
TestSortedSetRangeFunction · 0.70
TestIssue10Function · 0.70
TestSortedSetRemFunction · 0.70

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected