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

Function directDoFloatErr

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

Source from the content-addressed store, hash-verified

257}
258
259func directDoFloatErr(tb testing.TB, c *proto.Client, args ...interface{}) (float64, error) {
260 tb.Helper()
261 argList := interfaceToString(args)
262
263 res, err := c.Do(argList...)
264 ok(tb, err)
265 i, err := proto.ReadString(res)
266 ok(tb, err)
267 return strconv.ParseFloat(i, 64)
268}
269
270func directDoBool(tb testing.TB, c *proto.Client, args ...interface{}) bool {
271 tb.Helper()

Callers 1

TestHashIncrbyfloatFunction · 0.70

Calls 4

ReadStringFunction · 0.92
interfaceToStringFunction · 0.70
okFunction · 0.70
DoMethod · 0.45

Tested by

no test coverage detected