Lines Matching refs:hashmap_get
36 r = hashmap_get(m, "key 3"); in TEST()
40 r = hashmap_get(m, "key 5"); in TEST()
73 r = hashmap_get(copy, "key 1"); in TEST()
75 r = hashmap_get(copy, "key 2"); in TEST()
77 r = hashmap_get(copy, "key 3"); in TEST()
79 r = hashmap_get(copy, "key 4"); in TEST()
149 r = hashmap_get(n, "key 3"); in TEST()
151 r = hashmap_get(n, "key 4"); in TEST()
153 r = hashmap_get(m, "key 3"); in TEST()
188 r = hashmap_get(m, "key 1"); in TEST()
191 r = hashmap_get(n, "key 1"); in TEST()
193 r = hashmap_get(n, "key 2"); in TEST()
195 r = hashmap_get(n, "key 3"); in TEST()
197 r = hashmap_get(n, "key 4"); in TEST()
215 r = hashmap_get(m, "key 1"); in TEST()
219 r = hashmap_get(m, "key 1"); in TEST()
223 r = hashmap_get(m, "key 1"); in TEST()
271 r = hashmap_get(m, "key 2"); in TEST()
273 assert_se(!hashmap_get(m, "key 1")); in TEST()
302 r = hashmap_get(m, key2); in TEST()
304 assert_se(!hashmap_get(m, key1)); in TEST()
329 r = hashmap_get(m, "key 2"); in TEST()
331 assert_se(!hashmap_get(m, "key 1")); in TEST()
336 r = hashmap_get(m, "key 2"); in TEST()
338 assert_se(!hashmap_get(m, "key 1")); in TEST()
361 r = hashmap_get(m, "key 2"); in TEST()
363 assert_se(!hashmap_get(m, "key 1")); in TEST()
395 r = hashmap_get(m, key2); in TEST()
397 assert_se(!hashmap_get(m, key1)); in TEST()
403 r = hashmap_get(m, key2); in TEST()
405 assert_se(!hashmap_get(m, key3)); in TEST()
419 assert_se(!hashmap_get(m, UINT_TO_PTR(10*i + 1))); in TEST()
421 r = hashmap_get(m, UINT_TO_PTR(10*i + j)); in TEST()
549 r = hashmap_get(m, "Key 3"); in TEST()
551 r = hashmap_get(m, "Key 4"); in TEST()
626 TEST(hashmap_get) { in TEST() argument
634 r = hashmap_get(NULL, "Key 1"); in TEST()
641 r = hashmap_get(m, "Key 1"); in TEST()
644 r = hashmap_get(m, "no such key"); in TEST()
716 assert_se(PTR_TO_UINT(hashmap_get(h, UINT_TO_PTR(i))) == i); in TEST()
959 assert_se(hashmap_get(h, "foo") == INT_TO_PTR(1)); in TEST()
960 assert_se(hashmap_get(h, "foo/") == INT_TO_PTR(1)); in TEST()
961 assert_se(hashmap_get(h, "foo////") == INT_TO_PTR(1)); in TEST()
962 assert_se(hashmap_get(h, "/foo") == INT_TO_PTR(2)); in TEST()
963 assert_se(hashmap_get(h, "//foo") == INT_TO_PTR(2)); in TEST()
964 assert_se(hashmap_get(h, "/////foo////") == INT_TO_PTR(2)); in TEST()
965 assert_se(hashmap_get(h, "/////foox////") == INT_TO_PTR(4)); in TEST()
966 assert_se(hashmap_get(h, "/.///./foox//.//") == INT_TO_PTR(4)); in TEST()
967 assert_se(hashmap_get(h, "/foox/") == INT_TO_PTR(4)); in TEST()
968 assert_se(hashmap_get(h, "/foox") == INT_TO_PTR(4)); in TEST()
969 assert_se(!hashmap_get(h, "foox")); in TEST()
970 assert_se(hashmap_get(h, "foo/bar/quux") == INT_TO_PTR(6)); in TEST()
971 assert_se(hashmap_get(h, "foo////bar////quux/////") == INT_TO_PTR(6)); in TEST()
972 assert_se(!hashmap_get(h, "/foo////bar////quux/////")); in TEST()
973 assert_se(hashmap_get(h, "foo././//ba.r////.quux///.//.") == INT_TO_PTR(9)); in TEST()
987 s = hashmap_get(m, "foo"); in TEST()
997 s = hashmap_get(m, "xxx"); in TEST()