diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-07-19 11:30:19 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-07-19 11:30:19 -0700 |
commit | c62bff2cedead7df6fc55a745f073715da30727e (patch) | |
tree | f615f67724c780591786ed12c8a97088443e6c2a /t/helper/test-hashmap.c | |
parent | Merge branch 'ds/midx-expire-repack' (diff) | |
parent | t0016: add 'remove' subcommand test (diff) | |
download | tgif-c62bff2cedead7df6fc55a745f073715da30727e.tar.xz |
Merge branch 'cc/test-oidmap'
Extend the test coverage a bit.
* cc/test-oidmap:
t0016: add 'remove' subcommand test
test-oidmap: remove 'add' subcommand
test-hashmap: remove 'hash' command
oidmap: use sha1hash() instead of static hash() function
t: add t0016-oidmap.sh
t/helper: add test-oidmap.c
Diffstat (limited to 't/helper/test-hashmap.c')
-rw-r--r-- | t/helper/test-hashmap.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/t/helper/test-hashmap.c b/t/helper/test-hashmap.c index 23d2b172fe..aaf17b0ddf 100644 --- a/t/helper/test-hashmap.c +++ b/t/helper/test-hashmap.c @@ -173,14 +173,7 @@ int cmd__hashmap(int argc, const char **argv) p2 = strtok(NULL, DELIM); } - if (!strcmp("hash", cmd) && p1) { - - /* print results of different hash functions */ - printf("%u %u %u %u\n", - strhash(p1), memhash(p1, strlen(p1)), - strihash(p1), memihash(p1, strlen(p1))); - - } else if (!strcmp("add", cmd) && p1 && p2) { + if (!strcmp("add", cmd) && p1 && p2) { /* create entry with key = p1, value = p2 */ entry = alloc_test_entry(hash, p1, p2); |