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

Function mustRead

IceFireDB-PubSub/test/test_test.go:121–126  ·  view source on GitHub ↗

execute a Read()

(tb testing.TB, c *proto.Client, want string)

Source from the content-addressed store, hash-verified

119
120// execute a Read()
121func mustRead(tb testing.TB, c *proto.Client, want string) {
122 tb.Helper()
123 res, err := c.Read()
124 ok(tb, err)
125 equals(tb, want, res)
126}
127
128// execute a Do(args[,-1]...), which result needs to Contain() the same as the last arg.
129func mustContain(tb testing.TB, c *proto.Client, args ...string) {

Callers

nothing calls this directly

Calls 3

okFunction · 0.70
equalsFunction · 0.70
ReadMethod · 0.45

Tested by

no test coverage detected