| 98 | } IBMetrics; |
| 99 | |
| 100 | static IBMetrics ib_metrics(const char *filename, const char *content) { |
| 101 | RProj lp; |
| 102 | cbm_store_t *store = rh_index(&lp, filename, content); |
| 103 | IBMetrics m = {0}; |
| 104 | if (store) { |
| 105 | m.ok = 1; |
| 106 | m.calls = rh_count_edges(store, lp.project, "CALLS"); |
| 107 | m.callable_calls = ib_callable_calls(store, lp.project); |
| 108 | m.module_calls = ib_module_calls(store, lp.project); |
| 109 | } |
| 110 | rh_cleanup(&lp, store); |
| 111 | return m; |
| 112 | } |
| 113 | |
| 114 | /* ---- breadth case table ------------------------------------------------- */ |
| 115 |
no test coverage detected