summaryrefslogtreecommitdiff
path: root/src/test/test-hashmap-plain.c
Commit message (Collapse)AuthorAge
* tree-wide: drop license boilerplateZbigniew Jędrzejewski-Szmek2018-08-24
| | | | | | | | | | Files which are installed as-is (any .service and other unit files, .conf files, .policy files, etc), are left as is. My assumption is that SPDX identifiers are not yet that well known, so it's better to retain the extended header to avoid any doubt. I also kept any copyright lines. We can probably remove them, but it'd nice to obtain explicit acks from all involved authors before doing that.
* Prep v236 : Add missing SPDX-License-Identifier (8/9) src/testSven Eden2018-03-26
|
* Prep v235: Add missing includes and dependencies.Sven Eden2017-08-14
|
* test-hashmap: use $SYSTEMD_SLOW_TESTS variableZbigniew Jędrzejewski-Szmek2017-08-10
| | | | | test-hashmap is a very good test, but it gets in the way when one wants to compile and quickly test changes.
* Prep v233.3: Add all possible coverage tests for elogindSven Eden2017-07-20
|
* Remove src/testAndy Wingo2015-04-19
|
* test: hashmap_put behaviour for equal keysMartin Pitt2015-01-14
| | | | | Check string ops hashmap_put() for keys with a different pointer but the same value.
* test: hashmap-plain - make coverity happyTom Gundersen2014-11-05
| | | | | | Check return value of hashmap_ensure_allocated(). CID#1250807.
* test: use assert_se in test_hashmap_moveMichal Schmidt2014-11-04
|
* test: test a corner case in hashmap_remove_and_replace()Michal Schmidt2014-10-30
|
* test: adjust max load factor in test_hashmap_many()Michal Schmidt2014-10-30
| | | | A reimplementation of hashmaps will follow and it will use 0.8.
* hashmap: allow hashmap_move() to failMichal Schmidt2014-10-23
| | | | | | It cannot fail in the current hashmap implementation, but it may fail in alternative implementations (unless a sufficiently large reservation has been placed beforehand).
* test: add test for hashmap_reserve()Michal Schmidt2014-10-23
|
* test: add and improve hashmap testsMichal Schmidt2014-10-23
| | | | | | | | | | | | | | | | Test more corner cases and error states in several tests. Add new tests for: hashmap_move hashmap_remove hashmap_remove2 hashmap_remove_value hashmap_remove_and_replace hashmap_get2 hashmap_first In test_hashmap_many additionally test with an intentionally bad hash function.
* test: generate tests for OrderedHashmap from Hashmap testsMichal Schmidt2014-10-23
test-hashmap-ordered.c is generated from test-hashmap-plain.c simply by substituting "ordered_hashmap" for "hashmap" etc. In the cases where tests rely on the order of entries, a distinction between plain and ordered hashmaps is made using the ORDERED macro, which is defined only for test-hashmap-ordered.c.