A HEAD commit holding exactly `files`, its pinned tree and its inventory. */
| 18 | |
| 19 | /* A HEAD commit holding exactly `files`, its pinned tree and its inventory. */ |
| 20 | static bool tic_snapshot(if_native *n, const tic_file_t *files, size_t count, |
| 21 | cbm_test_impact_inventory_t **inventory) { |
| 22 | if (!ni_start(n) || !ni_reset_input(n)) { |
| 23 | return false; |
| 24 | } |
| 25 | for (size_t i = 0; i < count; i++) { |
| 26 | if (!if_text(&n->input, files[i].path, files[i].content)) { |
| 27 | return false; |
| 28 | } |
| 29 | } |
| 30 | n->input.limits.max_probe_prefix_bytes = CBM_LANGUAGE_PROBE_MAX; |
| 31 | return ni_commit_input(n) && ni_prepare(n, inventory); |
| 32 | } |
| 33 | |
| 34 | static const cbm_test_impact_classified_t *tic_row(const cbm_test_impact_ledger_t *ledger, |
| 35 | const if_native *n, const char *path) { |
no test coverage detected