Skip to content

Commit

Permalink
Adds test of WriteBatch with DeleteRangeCF that is not supported.
Browse files Browse the repository at this point in the history
This way, we get notified when the feature is available.
  • Loading branch information
yuanyuanzhao3 committed Dec 15, 2022
1 parent 1164ce9 commit 7aea411
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion transactiondb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,12 @@ func TestTransactionDBWriteBatchColumnFamilies(t *testing.T) {
}
}

// WriteBatch DeleteCF (DeleteRangeCF not implemented)
{ // WriteBatch with DeleteRangeCF not implemented
batch := NewWriteBatch()
batch.DeleteRangeCF(cf_handles[1], []byte(test_cf_names[1]+"_key_0"), []byte(test_cf_names[1]+"_key_2"))
ensure.NotNil(t, db.Write(wo, batch))
}
// WriteBatch DeleteCF
{
batch := NewWriteBatch()
batch.DeleteCF(cf_handles[1], []byte(test_cf_names[1]+"_key_0"))
Expand Down

0 comments on commit 7aea411

Please sign in to comment.