Skip to content

Commit 9837f2c

Browse files
committed
add test for set_use_delta_encoding()
Signed-off-by: Jason Volk <jason@zemos.net>
1 parent 778c613 commit 9837f2c

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

tests/test_rocksdb_options.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -860,6 +860,20 @@ fn test_set_memtable_avg_op_scan_flush_trigger() {
860860
}
861861
}
862862

863+
#[test]
864+
fn test_set_delta_encoding() {
865+
let path = DBPath::new("_set_delta_encoding");
866+
867+
let mut opts = Options::default();
868+
opts.create_if_missing(true);
869+
870+
let mut block_opts = BlockBasedOptions::default();
871+
block_opts.set_use_delta_encoding(true);
872+
opts.set_block_based_table_factory(&block_opts);
873+
874+
let _db = DB::open(&opts, &path).unwrap();
875+
}
876+
863877
#[test]
864878
fn jemalloc_init() {
865879
let path = DBPath::new("_jemalloc_init");

0 commit comments

Comments
 (0)