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

Function txExpireList

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

Source from the content-addressed store, hash-verified

739}
740
741func txExpireList(t *testing.T, db *DB, bucket string, key []byte, ttl uint32, expectErr error) {
742 err := db.Update(func(tx *Tx) error {
743 err := tx.ExpireList(bucket, key, ttl)
744 AssertErr(t, err, expectErr)
745 return nil
746 })
747 require.NoError(t, err)
748}
749
750func txGetListTTL(t *testing.T, db *DB, bucket string, key []byte, expectVal uint32, expectErr error) {
751 err := db.View(func(tx *Tx) error {

Callers 4

TestDB_WatchTTLFunction · 0.85
TestTx_LRemByIndexFunction · 0.85
TestTx_ExpireListFunction · 0.85
TestTx_GetListTTLFunction · 0.85

Calls 3

UpdateMethod · 0.80
AssertErrFunction · 0.70
ExpireListMethod · 0.45

Tested by

no test coverage detected