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

Function populateSkipListFromSlice

structure/zset_test.go:735–740  ·  view source on GitHub ↗
(nodes *FZSet, zSetNodeValues []testZSetNodeValue)

Source from the content-addressed store, hash-verified

733}
734
735func populateSkipListFromSlice(nodes *FZSet, zSetNodeValues []testZSetNodeValue) {
736 // Iterate over the zsetNodes array
737 for _, zSetNode := range zSetNodeValues {
738 _ = nodes.InsertNode(zSetNode.score, zSetNode.member, zSetNode.value)
739 }
740}
741func TestRandomLevel(t *testing.T) {
742 for i := 0; i < 1000; i++ {
743 level := randomLevel()

Callers 1

TestSkipList_deleteFunction · 0.85

Calls 1

InsertNodeMethod · 0.80

Tested by

no test coverage detected