MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / tic_snapshot

Function tic_snapshot

tests/test_test_impact_classify.c:20–32  ·  view source on GitHub ↗

A HEAD commit holding exactly `files`, its pinned tree and its inventory. */

Source from the content-addressed store, hash-verified

18
19/* A HEAD commit holding exactly `files`, its pinned tree and its inventory. */
20static 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
34static const cbm_test_impact_classified_t *tic_row(const cbm_test_impact_ledger_t *ledger,
35 const if_native *n, const char *path) {

Callers 1

Calls 5

ni_startFunction · 0.85
ni_reset_inputFunction · 0.85
if_textFunction · 0.85
ni_commit_inputFunction · 0.85
ni_prepareFunction · 0.85

Tested by

no test coverage detected