| 21 | } tsd_fixture_t; |
| 22 | |
| 23 | static int64_t tsd_node(tsd_fixture_t *f, const char *label, const char *name, const char *file, |
| 24 | int start, int end) { |
| 25 | char qn[256]; |
| 26 | snprintf(qn, sizeof(qn), "p.%s.%s.%d", file, name, start); |
| 27 | cbm_node_t node = {.project = "p", |
| 28 | .label = label, |
| 29 | .name = name, |
| 30 | .qualified_name = qn, |
| 31 | .file_path = file, |
| 32 | .start_line = start, |
| 33 | .end_line = end}; |
| 34 | return cbm_store_upsert_node(f->store, &node); |
| 35 | } |
| 36 | |
| 37 | /* Sources: pairs of (path, text). Model: the test sources among them. */ |
| 38 | static bool tsd_open(tsd_fixture_t *f, const char *const *files, int count) { |
no test coverage detected