| 931 | } |
| 932 | |
| 933 | static int hashmap_contains_path(struct hashmap *map, |
| 934 | struct strbuf *pattern) |
| 935 | { |
| 936 | struct pattern_entry p; |
| 937 | |
| 938 | /* Check straight mapping */ |
| 939 | p.pattern = pattern->buf; |
| 940 | p.patternlen = pattern->len; |
| 941 | hashmap_entry_init(&p.ent, fspathhash(p.pattern)); |
| 942 | return !!hashmap_get_entry(map, &p, ent, NULL); |
| 943 | } |
| 944 | |
| 945 | int hashmap_contains_parent(struct hashmap *map, |
| 946 | const char *path, |
no test coverage detected