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

Function TestHashExists

IceFireDB-PubSub/test/cmd_hash_test.go:199–216  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

197}
198
199func TestHashExists(t *testing.T) {
200 server.Clear()
201
202 c, err := proto.Dial(server.Addr())
203 ok(t, err)
204 defer c.Close()
205 must1(t, c, "HSET", "wim", "zus", "zus")
206 must1(t, c, "HEXISTS", "wim", "zus")
207 must0(t, c, "HEXISTS", "wim", "nosuch")
208 must0(t, c, "HEXISTS", "nosuch", "nosuch")
209
210 // Wrong key type
211 directDoString(t, c, "SET", "foo", "bar")
212 mustDo(t, c,
213 "HEXISTS", "foo", "nosuch",
214 proto.Error(msgWrongType),
215 )
216}
217
218func TestHashGetall(t *testing.T) {
219 server.Clear()

Callers

nothing calls this directly

Calls 10

ClearFunction · 0.92
DialFunction · 0.92
AddrFunction · 0.92
ErrorFunction · 0.92
okFunction · 0.70
must1Function · 0.70
must0Function · 0.70
directDoStringFunction · 0.70
mustDoFunction · 0.70
CloseMethod · 0.65

Tested by

no test coverage detected