| 42 | return ok; |
| 43 | } |
| 44 | static int64_t ss_node(cbm_store_t *s, const char *name, int line) { |
| 45 | char qn[128]; int n=snprintf(qn,sizeof(qn),SS_PROJECT ".%s",name); |
| 46 | if (n<=0 || (size_t)n>=sizeof(qn)) return -1; |
| 47 | cbm_node_t row={.project=SS_PROJECT,.label="Function",.name=name,.qualified_name=qn, |
| 48 | .file_path="unit.c",.start_line=line,.end_line=line,.properties_json="{}"}; |
| 49 | return cbm_store_upsert_node(s,&row); |
| 50 | } |
| 51 | static bool ss_edge(cbm_store_t *s,int64_t from,int64_t to,const char *type) { |
| 52 | cbm_edge_t e={.project=SS_PROJECT,.source_id=from,.target_id=to,.type=type,.properties_json="{}"}; |
| 53 | return cbm_store_insert_edge(s,&e)>0; |
no test coverage detected