Lines Matching refs:hash_map

46   hash_map_t *hash_map = hash_map_new(5, hash_map_fn00, NULL, NULL, NULL);  in TEST_F()  local
47 ASSERT_TRUE(hash_map != NULL); in TEST_F()
48 hash_map_free(hash_map); in TEST_F()
52 hash_map_t *hash_map = hash_map_new(5, hash_map_fn00, NULL, NULL, NULL); in TEST_F() local
53 ASSERT_TRUE(hash_map != NULL); in TEST_F()
68 EXPECT_EQ(i, hash_map_size(hash_map)); in TEST_F()
69 hash_map_set(hash_map, data[i].key, (void*)data[i].data); in TEST_F()
70 EXPECT_EQ(i + 1, hash_map_size(hash_map)); in TEST_F()
73 EXPECT_EQ(data_sz, hash_map_size(hash_map)); in TEST_F()
76 char *val = (char *)hash_map_get(hash_map, data[i].key); in TEST_F()
79 EXPECT_EQ(data_sz, hash_map_size(hash_map)); in TEST_F()
81 hash_map_free(hash_map); in TEST_F()
85 hash_map_t *hash_map = hash_map_new(5, hash_map_fn00, NULL, NULL, NULL); in TEST_F() local
86 ASSERT_TRUE(hash_map != NULL); in TEST_F()
101 hash_map_set(hash_map, data[i].key, (void*)data[i].data); in TEST_F()
102 EXPECT_EQ(1U, hash_map_size(hash_map)); in TEST_F()
105 EXPECT_EQ(1U, hash_map_size(hash_map)); in TEST_F()
108 char *val = (char *)hash_map_get(hash_map, data[i].key); in TEST_F()
112 hash_map_free(hash_map); in TEST_F()
116 hash_map_t *hash_map = hash_map_new(5, hash_map_fn00, key_free_fn00, data_free_fn00, NULL); in TEST_F() local
117 ASSERT_TRUE(hash_map != NULL); in TEST_F()
135 EXPECT_EQ(hash_map_size(hash_map), i); in TEST_F()
136 hash_map_set(hash_map, data[i].key, (void*)data[i].data); in TEST_F()
139 EXPECT_EQ(data_sz, hash_map_size(hash_map)); in TEST_F()
144 char *val = (char *)hash_map_get(hash_map, data[i].key); in TEST_F()
147 hash_map_erase(hash_map, (void*)data[i].key); in TEST_F()
152 hash_map_free(hash_map); in TEST_F()
186 hash_map_t *hash_map = hash_map_new(5, hash_map_fn00, key_free_fn00, data_free_fn00, NULL); in TEST_F() local
187 ASSERT_TRUE(hash_map != NULL); in TEST_F()
194 EXPECT_EQ(hash_map_size(hash_map), i); in TEST_F()
195 hash_map_set(hash_map, hash_test_iter_data[i].key, (void*)hash_test_iter_data[i].data); in TEST_F()
199 hash_map_foreach(hash_map, hash_test_iter_ro_cb, context); in TEST_F()
201 hash_map_free(hash_map); in TEST_F()