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

Function directDoBoolErr

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

Source from the content-addressed store, hash-verified

280}
281
282func directDoBoolErr(tb testing.TB, c *proto.Client, args ...interface{}) (bool, error) {
283 tb.Helper()
284 argList := interfaceToString(args)
285
286 res, err := c.Do(argList...)
287 ok(tb, err)
288 i, err := proto.Parse(res)
289 ok(tb, err)
290 v, _ := i.(int)
291 return v > 0, err
292}
293
294func directDoList(tb testing.TB, c *proto.Client, args ...interface{}) (interface{}, error) {
295 tb.Helper()

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected