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

Function txLRem

db_test.go:344–351  ·  view source on GitHub ↗
(t *testing.T, db *DB, bucket string, key []byte, count int, value []byte, expectErr error)

Source from the content-addressed store, hash-verified

342}
343
344func txLRem(t *testing.T, db *DB, bucket string, key []byte, count int, value []byte, expectErr error) {
345 err := db.Update(func(tx *Tx) error {
346 err := tx.LRem(bucket, key, count, value)
347 AssertErr(t, err, expectErr)
348 return nil
349 })
350 require.NoError(t, err)
351}
352
353func txLRemByIndex(t *testing.T, db *DB, bucket string, key []byte, expectErr error, indexes ...int) {
354 err := db.Update(func(tx *Tx) error {

Callers 4

TestDB_WatchFunction · 0.85
TestTx_LRemFunction · 0.85
TestDB_MergeForListFunction · 0.85

Calls 3

UpdateMethod · 0.80
AssertErrFunction · 0.70
LRemMethod · 0.45

Tested by

no test coverage detected