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

Function directDoIntErr

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

Source from the content-addressed store, hash-verified

243}
244
245func directDoIntErr(tb testing.TB, c *proto.Client, args ...interface{}) (int, error) {
246 tb.Helper()
247 argList := interfaceToString(args)
248
249 res, err := c.Do(argList...)
250 ok(tb, err)
251 i, err := proto.Parse(res)
252 ok(tb, err)
253 if err, ok := i.(error); ok {
254 return 0, err
255 }
256 return i.(int), err
257}
258
259func directDoFloatErr(tb testing.TB, c *proto.Client, args ...interface{}) (float64, error) {
260 tb.Helper()

Callers 1

TestHashMSetFunction · 0.70

Calls 4

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

Tested by

no test coverage detected