| 896 | } impact_region_t; |
| 897 | |
| 898 | static void impact_add_node(yyjson_mut_doc *doc, yyjson_mut_val *arr, const flow_node_t *node, |
| 899 | int distance) { |
| 900 | yyjson_mut_val *obj = yyjson_mut_obj(doc); |
| 901 | yyjson_mut_obj_add_int(doc, obj, "id", node->id); |
| 902 | yyjson_mut_obj_add_strcpy(doc, obj, "name", node->name ? node->name : "?"); |
| 903 | if (node->file_path) |
| 904 | yyjson_mut_obj_add_strcpy(doc, obj, "file_path", node->file_path); |
| 905 | yyjson_mut_obj_add_int(doc, obj, "distance", distance); |
| 906 | yyjson_mut_arr_append(arr, obj); |
| 907 | } |
| 908 | |
| 909 | char *cbm_atlas_impact_json(cbm_store_t *store, const char *project, int64_t node_id, |
| 910 | const char *node_qn) { |
no outgoing calls
no test coverage detected