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

Function txZRem

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

Source from the content-addressed store, hash-verified

553}
554
555func txZRem(t *testing.T, db *DB, bucket string, key, value []byte, expectErr error) {
556 err := db.Update(func(tx *Tx) error {
557 err := tx.ZRem(bucket, key, value)
558 AssertErr(t, err, expectErr)
559 return nil
560 })
561 assert.NoError(t, err)
562}
563
564func txZCard(t *testing.T, db *DB, bucket string, key []byte, expectLength int, expectErr error) {
565 err := db.View(func(tx *Tx) error {

Callers 11

TestDB_WatchFunction · 0.85
TestTx_ZRemFunction · 0.85
TestTx_ZPopFunction · 0.85
TestTx_ZPeekMinFunction · 0.85
TestTx_ZRankFunction · 0.85
TestDB_MergeForZSetFunction · 0.85

Calls 3

UpdateMethod · 0.80
AssertErrFunction · 0.70
ZRemMethod · 0.45

Tested by

no test coverage detected