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

Function directDoBool

IceFireDB-PubSub/test/test_test.go:270–280  ·  view source on GitHub ↗
(tb testing.TB, c *proto.Client, args ...interface{})

Source from the content-addressed store, hash-verified

268}
269
270func directDoBool(tb testing.TB, c *proto.Client, args ...interface{}) bool {
271 tb.Helper()
272 argList := interfaceToString(args)
273
274 res, err := c.Do(argList...)
275 ok(tb, err)
276 i, err := proto.Parse(res)
277 ok(tb, err)
278 v, _ := i.(int)
279 return v > 0
280}
281
282func directDoBoolErr(tb testing.TB, c *proto.Client, args ...interface{}) (bool, error) {
283 tb.Helper()

Callers 1

TestHashDelFunction · 0.70

Calls 4

ParseFunction · 0.92
interfaceToStringFunction · 0.70
okFunction · 0.70
DoMethod · 0.45

Tested by

no test coverage detected