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

Function TestTx_ZCheck

tx_zset_test.go:29–37  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

27var tx *Tx
28
29func TestTx_ZCheck(t *testing.T) {
30 runNutsDBTest(t, nil, func(t *testing.T, db *DB) {
31 err := db.View(func(tx *Tx) error {
32 require.Equal(t, ErrBucketNotExist, tx.ZCheck("fake bucket"))
33 return nil
34 })
35 require.NoError(t, err)
36 })
37}
38
39func TestTx_ZAdd(t *testing.T) {
40

Callers

nothing calls this directly

Calls 3

runNutsDBTestFunction · 0.85
ViewMethod · 0.80
ZCheckMethod · 0.80

Tested by

no test coverage detected