]> git.proxmox.com Git - mirror_frr.git/commit - tests/lib/test_typelist.c
tests: test DECLARE_HASH with good and bad hashfn
authorDavid Lamparter <equinox@diac24.net>
Mon, 20 May 2019 19:04:14 +0000 (21:04 +0200)
committerDavid Lamparter <equinox@diac24.net>
Tue, 21 May 2019 03:42:10 +0000 (05:42 +0200)
commit2214f160bf30c21b96515287f06938fea4191848
treecee8e8f16352422914c40ab5a08347634651a0fa
parentfdad523b547e68a2170a7e5fec4bad98222cb9a0
tests: test DECLARE_HASH with good and bad hashfn

The hash table test was previously (intentionally) using a bad hash
function to test the code in the face of hash collisions.  Add a test
with a good hash function to see some performance numbers.

Signed-off-by: David Lamparter <equinox@diac24.net>
tests/lib/test_typelist.c
tests/lib/test_typelist.h
tests/lib/test_typelist.py