Skip to content

Commit

Permalink
tests: internal: hashtable: use new hashtable func prototype
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Nov 17, 2017
1 parent 891485c commit 00b173a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/internal/hashtable.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ void test_create_zero()
{
struct flb_hash *ht;

ht = flb_hash_create(0);
ht = flb_hash_create(0, FLB_HASH_EVICT_NONE, -1);
TEST_CHECK(ht == NULL);
}

Expand All @@ -91,7 +91,7 @@ void test_single()
size_t out_size;
struct flb_hash *ht;

ht = flb_hash_create(1);
ht = flb_hash_create(1, FLB_HASH_EVICT_NONE, -1);
TEST_CHECK(ht != NULL);

ret = ht_add(ht, "key", "value");
Expand All @@ -112,7 +112,7 @@ void test_small_table()
struct map *m;
struct flb_hash *ht;

ht = flb_hash_create(1);
ht = flb_hash_create(1, FLB_HASH_EVICT_NONE, -1);
TEST_CHECK(ht != NULL);

for (i = 0; i < sizeof(entries) / sizeof(struct map); i++) {
Expand All @@ -129,7 +129,7 @@ void test_medium_table()
struct map *m;
struct flb_hash *ht;

ht = flb_hash_create(8);
ht = flb_hash_create(8, FLB_HASH_EVICT_NONE, -1);
TEST_CHECK(ht != NULL);

for (i = 0; i < sizeof(entries) / sizeof(struct map); i++) {
Expand All @@ -151,7 +151,7 @@ void test_chaining()
struct flb_hash_table *table;
struct flb_hash *ht;

ht = flb_hash_create(8);
ht = flb_hash_create(8, FLB_HASH_EVICT_NONE, -1);
TEST_CHECK(ht != NULL);

for (i = 0; i < sizeof(entries) / sizeof(struct map); i++) {
Expand Down Expand Up @@ -187,7 +187,7 @@ void test_delete_all()
struct flb_hash_table *table;
struct flb_hash *ht;

ht = flb_hash_create(8);
ht = flb_hash_create(8, FLB_HASH_EVICT_NONE, -1);
TEST_CHECK(ht != NULL);

total = sizeof(entries) / sizeof(struct map);
Expand Down

0 comments on commit 00b173a

Please sign in to comment.