| 163 | pc_text(out->file_path, file) && pc_role(out, role); |
| 164 | } |
| 165 | static bool pc_call(cbm_store_t *s, int64_t source, int64_t target) { |
| 166 | cbm_edge_t *edges = NULL; int count = 0; |
| 167 | bool read = cbm_store_find_edges_by_source_type(s, source, "CALLS", &edges, &count) == CBM_STORE_OK; |
| 168 | bool found = false; |
| 169 | if (read) for (int i = 0; i < count; i++) |
| 170 | if (edges[i].source_id == source && edges[i].target_id == target && pc_text(edges[i].type, "CALLS")) found = true; |
| 171 | cbm_store_free_edges(edges, count); |
| 172 | return read && found; |
| 173 | } |
| 174 | static bool pc_c_graph(const char *db, bool after) { |
| 175 | cbm_store_t *s = cbm_store_open_path_query(db); |
| 176 | if (!s) return false; |
no test coverage detected