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

Function testSAdd

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

Source from the content-addressed store, hash-verified

71}
72
73func testSAdd() {
74 if err := db.Update(
75 func(tx *nutsdb.Tx) error {
76 key := []byte("mySet")
77 return tx.SAdd(bucket, key, []byte("a"), []byte("b"), []byte("c"))
78 }); err != nil {
79 log.Fatal(err)
80 }
81}
82
83func testSAreMembers() {
84 if err := db.View(

Callers 1

mainFunction · 0.85

Calls 2

UpdateMethod · 0.80
SAddMethod · 0.45

Tested by

no test coverage detected