MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / cbm_store_coverage_get_path

Function cbm_store_coverage_get_path

src/store/store.c:2966–2975  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2964}
2965
2966int cbm_store_coverage_get_path(cbm_store_t *s, const char *project, const char *rel_path,
2967 cbm_coverage_row_t **out, int *count) {
2968 static const char sql[] = "SELECT rel_path, kind, detail FROM index_coverage "
2969 "WHERE project = ?1 AND (rel_path = ?2 OR "
2970 " (kind = 'not_indexed_dir' AND length(rel_path) < length(?2) "
2971 " AND substr(?2, 1, length(rel_path)) = rel_path "
2972 " AND substr(?2, length(rel_path) + 1, 1) = '/')) "
2973 "ORDER BY length(rel_path) DESC, rel_path, kind;";
2974 return coverage_query_rows(s, project, rel_path, sql, out, count);
2975}
2976
2977int cbm_store_coverage_get_scope(cbm_store_t *s, const char *project, const char *scope,
2978 cbm_coverage_row_t **out, int *count) {

Callers 3

test_store_nodes.cFile · 0.85

Calls 1

coverage_query_rowsFunction · 0.85

Tested by

no test coverage detected