@@ -41,6 +41,7 @@ int test_compact_bucket_chain(int argc, char **argv, int flags);
4141int test_random_entry (int argc , char * * argv , int flags );
4242int test_random_entry_with_long_chain (int argc , char * * argv , int flags );
4343int test_random_entry_sparse_table (int argc , char * * argv , int flags );
44+ int test_iterator_bounds_check (int argc , char * * argv , int flags );
4445int test_intsetValueEncodings (int argc , char * * argv , int flags );
4546int test_intsetBasicAdding (int argc , char * * argv , int flags );
4647int test_intsetLargeNumberRandomAdd (int argc , char * * argv , int flags );
@@ -258,7 +259,7 @@ unitTest __test_crc64combine_c[] = {{"test_crc64combine", test_crc64combine}, {N
258259unitTest __test_dict_c [] = {{"test_dictCreate" , test_dictCreate }, {"test_dictAdd16Keys" , test_dictAdd16Keys }, {"test_dictDisableResize" , test_dictDisableResize }, {"test_dictAddOneKeyTriggerResize" , test_dictAddOneKeyTriggerResize }, {"test_dictDeleteKeys" , test_dictDeleteKeys }, {"test_dictDeleteOneKeyTriggerResize" , test_dictDeleteOneKeyTriggerResize }, {"test_dictEmptyDirAdd128Keys" , test_dictEmptyDirAdd128Keys }, {"test_dictDisableResizeReduceTo3" , test_dictDisableResizeReduceTo3 }, {"test_dictDeleteOneKeyTriggerResizeAgain" , test_dictDeleteOneKeyTriggerResizeAgain }, {"test_dictBenchmark" , test_dictBenchmark }, {NULL , NULL }};
259260unitTest __test_endianconv_c [] = {{"test_endianconv" , test_endianconv }, {NULL , NULL }};
260261unitTest __test_entry_c [] = {{"test_entryCreate" , test_entryCreate }, {"test_entryUpdate" , test_entryUpdate }, {"test_entryHasexpiry_entrySetExpiry" , test_entryHasexpiry_entrySetExpiry }, {"test_entryIsExpired" , test_entryIsExpired }, {"test_entryMemUsage_entrySetExpiry_entrySetValue" , test_entryMemUsage_entrySetExpiry_entrySetValue }, {NULL , NULL }};
261- unitTest __test_hashtable_c [] = {{"test_cursor" , test_cursor }, {"test_set_hash_function_seed" , test_set_hash_function_seed }, {"test_add_find_delete" , test_add_find_delete }, {"test_add_find_delete_avoid_resize" , test_add_find_delete_avoid_resize }, {"test_instant_rehashing" , test_instant_rehashing }, {"test_bucket_chain_length" , test_bucket_chain_length }, {"test_two_phase_insert_and_pop" , test_two_phase_insert_and_pop }, {"test_replace_reallocated_entry" , test_replace_reallocated_entry }, {"test_incremental_find" , test_incremental_find }, {"test_scan" , test_scan }, {"test_iterator" , test_iterator }, {"test_safe_iterator" , test_safe_iterator }, {"test_compact_bucket_chain" , test_compact_bucket_chain }, {"test_random_entry" , test_random_entry }, {"test_random_entry_with_long_chain" , test_random_entry_with_long_chain }, {"test_random_entry_sparse_table" , test_random_entry_sparse_table }, {NULL , NULL }};
262+ unitTest __test_hashtable_c [] = {{"test_cursor" , test_cursor }, {"test_set_hash_function_seed" , test_set_hash_function_seed }, {"test_add_find_delete" , test_add_find_delete }, {"test_add_find_delete_avoid_resize" , test_add_find_delete_avoid_resize }, {"test_instant_rehashing" , test_instant_rehashing }, {"test_bucket_chain_length" , test_bucket_chain_length }, {"test_two_phase_insert_and_pop" , test_two_phase_insert_and_pop }, {"test_replace_reallocated_entry" , test_replace_reallocated_entry }, {"test_incremental_find" , test_incremental_find }, {"test_scan" , test_scan }, {"test_iterator" , test_iterator }, {"test_safe_iterator" , test_safe_iterator }, {"test_compact_bucket_chain" , test_compact_bucket_chain }, {"test_random_entry" , test_random_entry }, {"test_random_entry_with_long_chain" , test_random_entry_with_long_chain }, {"test_random_entry_sparse_table" , test_random_entry_sparse_table }, {"test_iterator_bounds_check" , test_iterator_bounds_check }, { NULL , NULL }};
262263unitTest __test_intset_c [] = {{"test_intsetValueEncodings" , test_intsetValueEncodings }, {"test_intsetBasicAdding" , test_intsetBasicAdding }, {"test_intsetLargeNumberRandomAdd" , test_intsetLargeNumberRandomAdd }, {"test_intsetUpgradeFromint16Toint32" , test_intsetUpgradeFromint16Toint32 }, {"test_intsetUpgradeFromint16Toint64" , test_intsetUpgradeFromint16Toint64 }, {"test_intsetUpgradeFromint32Toint64" , test_intsetUpgradeFromint32Toint64 }, {"test_intsetStressLookups" , test_intsetStressLookups }, {"test_intsetStressAddDelete" , test_intsetStressAddDelete }, {NULL , NULL }};
263264unitTest __test_kvstore_c [] = {{"test_kvstoreAdd16Keys" , test_kvstoreAdd16Keys }, {"test_kvstoreIteratorRemoveAllKeysNoDeleteEmptyHashtable" , test_kvstoreIteratorRemoveAllKeysNoDeleteEmptyHashtable }, {"test_kvstoreIteratorRemoveAllKeysDeleteEmptyHashtable" , test_kvstoreIteratorRemoveAllKeysDeleteEmptyHashtable }, {"test_kvstoreHashtableIteratorRemoveAllKeysNoDeleteEmptyHashtable" , test_kvstoreHashtableIteratorRemoveAllKeysNoDeleteEmptyHashtable }, {"test_kvstoreHashtableIteratorRemoveAllKeysDeleteEmptyHashtable" , test_kvstoreHashtableIteratorRemoveAllKeysDeleteEmptyHashtable }, {"test_kvstoreHashtableExpand" , test_kvstoreHashtableExpand }, {NULL , NULL }};
264265unitTest __test_listpack_c [] = {{"test_listpackCreateIntList" , test_listpackCreateIntList }, {"test_listpackCreateList" , test_listpackCreateList }, {"test_listpackLpPrepend" , test_listpackLpPrepend }, {"test_listpackLpPrependInteger" , test_listpackLpPrependInteger }, {"test_listpackGetELementAtIndex" , test_listpackGetELementAtIndex }, {"test_listpackPop" , test_listpackPop }, {"test_listpackGetELementAtIndex2" , test_listpackGetELementAtIndex2 }, {"test_listpackIterate0toEnd" , test_listpackIterate0toEnd }, {"test_listpackIterate1toEnd" , test_listpackIterate1toEnd }, {"test_listpackIterate2toEnd" , test_listpackIterate2toEnd }, {"test_listpackIterateBackToFront" , test_listpackIterateBackToFront }, {"test_listpackIterateBackToFrontWithDelete" , test_listpackIterateBackToFrontWithDelete }, {"test_listpackDeleteWhenNumIsMinusOne" , test_listpackDeleteWhenNumIsMinusOne }, {"test_listpackDeleteWithNegativeIndex" , test_listpackDeleteWithNegativeIndex }, {"test_listpackDeleteInclusiveRange0_0" , test_listpackDeleteInclusiveRange0_0 }, {"test_listpackDeleteInclusiveRange0_1" , test_listpackDeleteInclusiveRange0_1 }, {"test_listpackDeleteInclusiveRange1_2" , test_listpackDeleteInclusiveRange1_2 }, {"test_listpackDeleteWitStartIndexOutOfRange" , test_listpackDeleteWitStartIndexOutOfRange }, {"test_listpackDeleteWitNumOverflow" , test_listpackDeleteWitNumOverflow }, {"test_listpackBatchDelete" , test_listpackBatchDelete }, {"test_listpackDeleteFooWhileIterating" , test_listpackDeleteFooWhileIterating }, {"test_listpackReplaceWithSameSize" , test_listpackReplaceWithSameSize }, {"test_listpackReplaceWithDifferentSize" , test_listpackReplaceWithDifferentSize }, {"test_listpackRegressionGt255Bytes" , test_listpackRegressionGt255Bytes }, {"test_listpackCreateLongListAndCheckIndices" , test_listpackCreateLongListAndCheckIndices }, {"test_listpackCompareStrsWithLpEntries" , test_listpackCompareStrsWithLpEntries }, {"test_listpackLpMergeEmptyLps" , test_listpackLpMergeEmptyLps }, {"test_listpackLpMergeLp1Larger" , test_listpackLpMergeLp1Larger }, {"test_listpackLpMergeLp2Larger" , test_listpackLpMergeLp2Larger }, {"test_listpackLpNextRandom" , test_listpackLpNextRandom }, {"test_listpackLpNextRandomCC" , test_listpackLpNextRandomCC }, {"test_listpackRandomPairWithOneElement" , test_listpackRandomPairWithOneElement }, {"test_listpackRandomPairWithManyElements" , test_listpackRandomPairWithManyElements }, {"test_listpackRandomPairsWithOneElement" , test_listpackRandomPairsWithOneElement }, {"test_listpackRandomPairsWithManyElements" , test_listpackRandomPairsWithManyElements }, {"test_listpackRandomPairsUniqueWithOneElement" , test_listpackRandomPairsUniqueWithOneElement }, {"test_listpackRandomPairsUniqueWithManyElements" , test_listpackRandomPairsUniqueWithManyElements }, {"test_listpackPushVariousEncodings" , test_listpackPushVariousEncodings }, {"test_listpackLpFind" , test_listpackLpFind }, {"test_listpackLpValidateIntegrity" , test_listpackLpValidateIntegrity }, {"test_listpackNumberOfElementsExceedsLP_HDR_NUMELE_UNKNOWN" , test_listpackNumberOfElementsExceedsLP_HDR_NUMELE_UNKNOWN }, {"test_listpackStressWithRandom" , test_listpackStressWithRandom }, {"test_listpackSTressWithVariableSize" , test_listpackSTressWithVariableSize }, {"test_listpackBenchmarkInit" , test_listpackBenchmarkInit }, {"test_listpackBenchmarkLpAppend" , test_listpackBenchmarkLpAppend }, {"test_listpackBenchmarkLpFindString" , test_listpackBenchmarkLpFindString }, {"test_listpackBenchmarkLpFindNumber" , test_listpackBenchmarkLpFindNumber }, {"test_listpackBenchmarkLpSeek" , test_listpackBenchmarkLpSeek }, {"test_listpackBenchmarkLpValidateIntegrity" , test_listpackBenchmarkLpValidateIntegrity }, {"test_listpackBenchmarkLpCompareWithString" , test_listpackBenchmarkLpCompareWithString }, {"test_listpackBenchmarkLpCompareWithNumber" , test_listpackBenchmarkLpCompareWithNumber }, {"test_listpackBenchmarkFree" , test_listpackBenchmarkFree }, {NULL , NULL }};
0 commit comments