@@ -206,6 +206,9 @@ int test_update_entry_within_same_bucket(int argc, char **argv, int flags);
206206int test_update_entry_across_buckets (int argc , char * * argv , int flags );
207207int test_bucket_order_by_expiry (int argc , char * * argv , int flags );
208208int test_bucket_lookup_strictly_below (int argc , char * * argv , int flags );
209+ int test_iterator_basic (int argc , char * * argv , int flags );
210+ int test_iterator_listpack (int argc , char * * argv , int flags );
211+ int test_iterator_mixed_buckets (int argc , char * * argv , int flags );
209212int test_ziplistCreateIntList (int argc , char * * argv , int flags );
210213int test_ziplistPop (int argc , char * * argv , int flags );
211214int test_ziplistGetElementAtIndex3 (int argc , char * * argv , int flags );
@@ -266,8 +269,7 @@ unitTest __test_sha1_c[] = {{"test_sha1", test_sha1}, {NULL, NULL}};
266269unitTest __test_util_c [] = {{"test_string2ll" , test_string2ll }, {"test_string2l" , test_string2l }, {"test_ll2string" , test_ll2string }, {"test_ld2string" , test_ld2string }, {"test_fixedpoint_d2string" , test_fixedpoint_d2string }, {"test_version2num" , test_version2num }, {"test_reclaimFilePageCache" , test_reclaimFilePageCache }, {NULL , NULL }};
267270unitTest __test_valkey_strtod_c [] = {{"test_valkey_strtod" , test_valkey_strtod }, {NULL , NULL }};
268271unitTest __test_vector_c [] = {{"test_vector" , test_vector }, {NULL , NULL }};
269- unitTest __test_volatile_set_c [] = {{"test_basic" , test_basic }, {"test_update_entry" , test_update_entry }, {"test_hashtable" , test_hashtable }, {"test_promotion" , test_promotion }, {"test_demotion_ht_to_single" , test_demotion_ht_to_single }, {"test_update_same_bucket_noop" , test_update_same_bucket_noop }, {"test_update_entry_within_same_bucket" , test_update_entry_within_same_bucket }, {"test_update_entry_across_buckets" , test_update_entry_across_buckets }, {NULL , NULL }};
270- unitTest __test_volatile_set_c [] = {{"test_basic" , test_basic }, {"test_update_entry" , test_update_entry }, {"test_hashtable" , test_hashtable }, {"test_promotion" , test_promotion }, {"test_demotion_ht_to_single" , test_demotion_ht_to_single }, {"test_update_same_bucket_noop" , test_update_same_bucket_noop }, {"test_update_entry_within_same_bucket" , test_update_entry_within_same_bucket }, {"test_update_entry_across_buckets" , test_update_entry_across_buckets }, {"test_bucket_order_by_expiry" , test_bucket_order_by_expiry }, {"test_bucket_lookup_strictly_below" , test_bucket_lookup_strictly_below }, {NULL , NULL }};
272+ unitTest __test_volatile_set_c [] = {{"test_basic" , test_basic }, {"test_update_entry" , test_update_entry }, {"test_hashtable" , test_hashtable }, {"test_promotion" , test_promotion }, {"test_demotion_ht_to_single" , test_demotion_ht_to_single }, {"test_update_same_bucket_noop" , test_update_same_bucket_noop }, {"test_update_entry_within_same_bucket" , test_update_entry_within_same_bucket }, {"test_update_entry_across_buckets" , test_update_entry_across_buckets }, {"test_bucket_order_by_expiry" , test_bucket_order_by_expiry }, {"test_bucket_lookup_strictly_below" , test_bucket_lookup_strictly_below }, {"test_iterator_basic" , test_iterator_basic }, {"test_iterator_listpack" , test_iterator_listpack }, {"test_iterator_mixed_buckets" , test_iterator_mixed_buckets }, {NULL , NULL }};
271273unitTest __test_ziplist_c [] = {{"test_ziplistCreateIntList" , test_ziplistCreateIntList }, {"test_ziplistPop" , test_ziplistPop }, {"test_ziplistGetElementAtIndex3" , test_ziplistGetElementAtIndex3 }, {"test_ziplistGetElementOutOfRange" , test_ziplistGetElementOutOfRange }, {"test_ziplistGetLastElement" , test_ziplistGetLastElement }, {"test_ziplistGetFirstElement" , test_ziplistGetFirstElement }, {"test_ziplistGetElementOutOfRangeReverse" , test_ziplistGetElementOutOfRangeReverse }, {"test_ziplistIterateThroughFullList" , test_ziplistIterateThroughFullList }, {"test_ziplistIterateThroughListFrom1ToEnd" , test_ziplistIterateThroughListFrom1ToEnd }, {"test_ziplistIterateThroughListFrom2ToEnd" , test_ziplistIterateThroughListFrom2ToEnd }, {"test_ziplistIterateThroughStartOutOfRange" , test_ziplistIterateThroughStartOutOfRange }, {"test_ziplistIterateBackToFront" , test_ziplistIterateBackToFront }, {"test_ziplistIterateBackToFrontDeletingAllItems" , test_ziplistIterateBackToFrontDeletingAllItems }, {"test_ziplistDeleteInclusiveRange0To0" , test_ziplistDeleteInclusiveRange0To0 }, {"test_ziplistDeleteInclusiveRange0To1" , test_ziplistDeleteInclusiveRange0To1 }, {"test_ziplistDeleteInclusiveRange1To2" , test_ziplistDeleteInclusiveRange1To2 }, {"test_ziplistDeleteWithStartIndexOutOfRange" , test_ziplistDeleteWithStartIndexOutOfRange }, {"test_ziplistDeleteWithNumOverflow" , test_ziplistDeleteWithNumOverflow }, {"test_ziplistDeleteFooWhileIterating" , test_ziplistDeleteFooWhileIterating }, {"test_ziplistReplaceWithSameSize" , test_ziplistReplaceWithSameSize }, {"test_ziplistReplaceWithDifferentSize" , test_ziplistReplaceWithDifferentSize }, {"test_ziplistRegressionTestForOver255ByteStrings" , test_ziplistRegressionTestForOver255ByteStrings }, {"test_ziplistRegressionTestDeleteNextToLastEntries" , test_ziplistRegressionTestDeleteNextToLastEntries }, {"test_ziplistCreateLongListAndCheckIndices" , test_ziplistCreateLongListAndCheckIndices }, {"test_ziplistCompareStringWithZiplistEntries" , test_ziplistCompareStringWithZiplistEntries }, {"test_ziplistMergeTest" , test_ziplistMergeTest }, {"test_ziplistStressWithRandomPayloadsOfDifferentEncoding" , test_ziplistStressWithRandomPayloadsOfDifferentEncoding }, {"test_ziplistCascadeUpdateEdgeCases" , test_ziplistCascadeUpdateEdgeCases }, {"test_ziplistInsertEdgeCase" , test_ziplistInsertEdgeCase }, {"test_ziplistStressWithVariableSize" , test_ziplistStressWithVariableSize }, {"test_BenchmarkziplistFind" , test_BenchmarkziplistFind }, {"test_BenchmarkziplistIndex" , test_BenchmarkziplistIndex }, {"test_BenchmarkziplistValidateIntegrity" , test_BenchmarkziplistValidateIntegrity }, {"test_BenchmarkziplistCompareWithString" , test_BenchmarkziplistCompareWithString }, {"test_BenchmarkziplistCompareWithNumber" , test_BenchmarkziplistCompareWithNumber }, {"test_ziplistStress__ziplistCascadeUpdate" , test_ziplistStress__ziplistCascadeUpdate }, {NULL , NULL }};
272274unitTest __test_zipmap_c [] = {{"test_zipmapIterateWithLargeKey" , test_zipmapIterateWithLargeKey }, {"test_zipmapIterateThroughElements" , test_zipmapIterateThroughElements }, {NULL , NULL }};
273275unitTest __test_zmalloc_c [] = {{"test_zmallocInitialUsedMemory" , test_zmallocInitialUsedMemory }, {"test_zmallocAllocReallocCallocAndFree" , test_zmallocAllocReallocCallocAndFree }, {"test_zmallocAllocZeroByteAndFree" , test_zmallocAllocZeroByteAndFree }, {NULL , NULL }};
0 commit comments