MCPcopy Create free account
hub / github.com/nutsdb/nutsdb / testZAdd

Function testZAdd

examples/sortedSet/main.go:72–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70}
71
72func testZAdd() {
73 if err := db.Update(
74 func(tx *nutsdb.Tx) error {
75 bucket := "myZSet1"
76 key := []byte("key1")
77 return tx.ZAdd(bucket, key, 1, []byte("val1"))
78 }); err != nil {
79 log.Fatal(err)
80 }
81}
82
83func testZCard() {
84 if err := db.View(

Callers 1

mainFunction · 0.85

Calls 2

UpdateMethod · 0.80
ZAddMethod · 0.45

Tested by

no test coverage detected