| 14 | #include <string.h> |
| 15 | |
| 16 | static int64_t add_node(cbm_store_t *s, const char *label, const char *name) { |
| 17 | char qn[64]; |
| 18 | snprintf(qn, sizeof(qn), "test.%s", name); |
| 19 | cbm_node_t node = {.project = "test", .label = label, .name = name, .qualified_name = qn}; |
| 20 | return cbm_store_upsert_node(s, &node); |
| 21 | } |
| 22 | |
| 23 | /* `from` depends on `to`: the edge the walk follows backwards. */ |
| 24 | static void add_edge(cbm_store_t *s, int64_t from, int64_t to, const char *type) { |
no test coverage detected