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

Function TestIssue10

IceFireDB-PubSub/test/cmd_sorted_set_test.go:644–662  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

642}
643
644func TestIssue10(t *testing.T) {
645 server.Clear()
646 c, err := proto.Dial(server.Addr())
647 ok(t, err)
648 defer c.Close()
649 s := server.Direct()
650
651 s.ZAdd("key", 3.3, "element")
652
653 mustDo(t, c,
654 "ZRANGEBYSCORE", "key", "3.3", "3.3",
655 proto.Strings("element"),
656 )
657
658 mustDo(t, c,
659 "ZRANGEBYSCORE", "key", "4.3", "4.3",
660 proto.Strings(),
661 )
662}
663
664// Test ZREM
665func TestSortedSetRem(t *testing.T) {

Callers

nothing calls this directly

Calls 8

ClearFunction · 0.92
DialFunction · 0.92
AddrFunction · 0.92
DirectFunction · 0.92
StringsFunction · 0.92
okFunction · 0.70
mustDoFunction · 0.70
CloseMethod · 0.65

Tested by

no test coverage detected