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

Function directDoStringErr

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

Source from the content-addressed store, hash-verified

213}
214
215func directDoStringErr(tb testing.TB, c *proto.Client, args ...interface{}) (string, error) {
216 tb.Helper()
217 argList := interfaceToString(args)
218
219 res, err := c.Do(argList...)
220 ok(tb, err)
221 str, err := proto.Parse(res)
222 ok(tb, err)
223 if err, ok := str.(error); ok {
224 return "", err
225 }
226 s, _ := str.(string)
227 return s, err
228}
229
230func directDoInt(tb testing.TB, c *proto.Client, args ...interface{}) int {
231 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