| 338 | } LangMetrics; |
| 339 | |
| 340 | static LangMetrics lang_metrics(const LangFile *files, int nfiles) { |
| 341 | LangProj lp; |
| 342 | cbm_store_t *store = lang_index_files(&lp, files, nfiles); |
| 343 | LangMetrics m = {0}; |
| 344 | if (store) { |
| 345 | m.ok = 1; |
| 346 | m.calls = cbm_store_count_edges_by_type(store, lp.project, "CALLS"); |
| 347 | m.callers = callables_with_outbound(store, lp.project); |
| 348 | m.types = type_like_nodes(store, lp.project); |
| 349 | m.imports = cbm_store_count_edges_by_type(store, lp.project, "IMPORTS"); |
| 350 | } |
| 351 | lang_cleanup(&lp, store); |
| 352 | return m; |
| 353 | } |
| 354 | |
| 355 | /* Go: same-package function call. */ |
| 356 | TEST(contract_go_calls) { |
no test coverage detected