| 347 | } LangMetrics; |
| 348 | |
| 349 | static LangMetrics lang_metrics(const LangFile *files, int nfiles) { |
| 350 | LangProj lp; |
| 351 | cbm_store_t *store = lang_index_files(&lp, files, nfiles); |
| 352 | LangMetrics m = {0}; |
| 353 | if (store) { |
| 354 | m.ok = 1; |
| 355 | m.calls = cbm_store_count_edges_by_type(store, lp.project, "CALLS"); |
| 356 | m.callers = callables_with_outbound(store, lp.project); |
| 357 | m.types = type_like_nodes(store, lp.project); |
| 358 | m.imports = cbm_store_count_edges_by_type(store, lp.project, "IMPORTS"); |
| 359 | } |
| 360 | lang_cleanup(&lp, store); |
| 361 | return m; |
| 362 | } |
| 363 | |
| 364 | /* Go: same-package function call. */ |
| 365 | TEST(contract_go_calls) { |
no test coverage detected