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

Function testLSize

examples/list/main.go:264–278  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

262}
263
264func testLSize() {
265 if err := db.Update(
266 func(tx *nutsdb.Tx) error {
267 key := []byte("myList")
268 size, err := tx.LSize(bucket, key)
269 if err != nil {
270 return err
271 }
272
273 fmt.Println("myList size is ", size)
274 return nil
275 }); err != nil {
276 log.Fatal(err)
277 }
278}
279
280func testLRemByIndex() {
281 if err := db.Update(

Callers 1

mainFunction · 0.85

Calls 2

UpdateMethod · 0.80
LSizeMethod · 0.80

Tested by

no test coverage detected