risingwave_storage::hummock::test_utils

Function gen_default_test_sstable

source
pub async fn gen_default_test_sstable(
    opts: SstableBuilderOptions,
    object_id: HummockSstableObjectId,
    sstable_store: SstableStoreRef,
) -> TableHolder
Expand description

Generates a test table used in almost all table-related tests. Developers may verify the correctness of their implementations by comparing the got value and the expected value generated by test_key_of and test_value_of.