Lines Matching refs:entries
83 /* remove_all_test checks that pa_hashmap_remove_all really removes all entries
88 struct int_entry entries[1000];
92 entries[i].key = i;
93 entries[i].value = i;
99 pa_hashmap_put(map, &entries[i].key, &entries[i]);
121 struct int_entry entries[1000];
127 entries[i].key = i;
129 entries[i].value = i;
136 if ((put_ret = pa_hashmap_put(map, &entries[i].key, &entries[i])) != 0) {
137 ck_abort_msg("Unexpected failure putting k=%d v=%d into the map", entries[i].key, entries[i].value);
173 struct int_entry entries[1000];
179 entries[i].key = i;
180 entries[i].value = i;
186 if (pa_hashmap_put(map, &(entries[i].key), &(entries[i])) != 0) {
187 ck_abort_msg("Unexpected failure putting k=%d v=%d into the map", entries[i].key, entries[i].value);
209 pa_hashmap_remove(map, &(entries[i].key));
213 ck_abort_msg("Iteration over empty map returned entries");
218 if(pa_hashmap_put(map, &(entries[0].key), &(entries[0])) != 0) {
219 ck_abort_msg("Unexpected failure putting k=%d v=%d into the map", entries[0].key, entries[0].value);