MCPcopy Create free account
hub / github.com/ByteStorage/FlyDB / TestNewSkipList

Function TestNewSkipList

structure/zset_test.go:645–653  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

643 }
644}
645func TestNewSkipList(t *testing.T) {
646 s := newSkipList()
647
648 assertions := assert.New(t)
649 assertions.Equal(1, s.level)
650 assertions.Nil(s.head.prev)
651 assertions.Equal(0, s.head.value.score)
652 assertions.Equal("", s.head.value.member)
653}
654
655func TestNewSkipListNode(t *testing.T) {
656 score := 10

Callers

nothing calls this directly

Calls 1

newSkipListFunction · 0.85

Tested by

no test coverage detected