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

Function txGetListTTL

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

Source from the content-addressed store, hash-verified

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 {
752 ttl, err := tx.GetListTTL(bucket, key)
753 AssertErr(t, err, expectErr)
754 require.Equal(t, ttl, expectVal)
755 return nil
756 })
757 require.NoError(t, err)
758}
759
760func txLKeys(t *testing.T, db *DB, bucket, pattern string, expectLen int, expectErr error, keysOperation func(keys []string) bool) {
761 err := db.View(func(tx *Tx) error {

Callers 1

TestTx_GetListTTLFunction · 0.85

Calls 3

ViewMethod · 0.80
AssertErrFunction · 0.70
GetListTTLMethod · 0.45

Tested by

no test coverage detected