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

Function txZAdd

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

Source from the content-addressed store, hash-verified

544}
545
546func txZAdd(t *testing.T, db *DB, bucket string, key, value []byte, score float64, expectErr error, finalExpectErr error) {
547 err := db.Update(func(tx *Tx) error {
548 err := tx.ZAdd(bucket, key, score, value)
549 AssertErr(t, err, expectErr)
550 return nil
551 })
552 AssertErr(t, err, finalExpectErr)
553}
554
555func txZRem(t *testing.T, db *DB, bucket string, key, value []byte, expectErr error) {
556 err := db.Update(func(tx *Tx) error {

Callers 15

setupBucketFunction · 0.85
TestDB_WatchFunction · 0.85
TestDB_WatchDeleteBucketFunction · 0.85
TestTx_ZAddFunction · 0.85
TestTx_ZScoreFunction · 0.85
TestTx_ZRemFunction · 0.85
TestTx_ZMembersFunction · 0.85
TestTx_ZCountFunction · 0.85

Calls 3

UpdateMethod · 0.80
AssertErrFunction · 0.70
ZAddMethod · 0.45

Tested by

no test coverage detected