| 43 | } |
| 44 | |
| 45 | static int64_t gmt_node(cbm_store_t *s, const char *project, int i, const char *name) { |
| 46 | char qn[64]; |
| 47 | char file[32]; |
| 48 | snprintf(qn, sizeof(qn), "%s.mod%d.n%02d", project, i % 5, i); |
| 49 | snprintf(file, sizeof(file), "src/m%d.c", i % 5); |
| 50 | cbm_node_t n = {.project = project, |
| 51 | .label = (i % 7 == 3) ? "Method" : "Function", |
| 52 | .name = name, |
| 53 | .qualified_name = qn, |
| 54 | .file_path = file, |
| 55 | .start_line = i, |
| 56 | .end_line = i + 3}; |
| 57 | return cbm_store_upsert_node(s, &n); |
| 58 | } |
| 59 | |
| 60 | static void gmt_edge(cbm_store_t *s, int64_t src, int64_t dst, const char *type, |
| 61 | const char *props) { |
no test coverage detected