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

Function directDoString

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

Source from the content-addressed store, hash-verified

192}
193
194func directDoString(tb testing.TB, c *proto.Client, args ...interface{}) string {
195 tb.Helper()
196 argList := interfaceToString(args)
197
198 res, err := c.Do(argList...)
199 ok(tb, err)
200 str, err := proto.Parse(res)
201 ok(tb, err)
202 s, _ := str.(string)
203 return s
204}
205
206func directDoStringArrErr(tb testing.TB, c *proto.Client, args ...interface{}) ([]string, error) {
207 tb.Helper()

Callers 11

TestHashFunction · 0.70
TestHashSetNXFunction · 0.70
TestHashMSetFunction · 0.70
TestHashDelFunction · 0.70
TestHashExistsFunction · 0.70
TestHashGetallFunction · 0.70
TestHashKeysFunction · 0.70
TestHashLenFunction · 0.70
TestHashIncrbyFunction · 0.70
TestHashIncrbyfloatFunction · 0.70
TestHstrlenFunction · 0.70

Calls 4

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

Tested by

no test coverage detected