Add a basic test suite for pa_hashmap

I spent a little time working through the implementation of
pa_hashmap, and wrote a test suite while doing so.  It tests a few
basic edge cases, like saturating all buckets of the hashtable.
This commit is contained in:
Taahir Ahmed 2020-06-13 22:57:17 -07:00 committed by Tanu Kaskinen
parent e790ed536c
commit d97075c79f
3 changed files with 296 additions and 30 deletions

View file

@ -30,6 +30,8 @@ default_tests = [
[ check_dep, libpulse_dep, libpulsecommon_dep, libpulsecore_dep ] ],
[ 'get-binary-name-test', 'get-binary-name-test.c',
[ check_dep, libpulse_dep, libpulsecommon_dep ] ],
[ 'hashmap-test', 'hashmap-test.c',
[ check_dep, libpulse_dep, libpulsecommon_dep ] ],
[ 'hook-list-test', 'hook-list-test.c',
[ check_dep, libpulse_dep, libpulsecommon_dep, libpulsecore_dep ] ],
[ 'json-test', 'json-test.c',