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

Function gic_replay_parse

tests/test_gitignore_checked.c:428–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

426} gic_replay_result;
427
428static bool gic_replay_parse(cbm_ignore_checked_t *owner, size_t step,
429 const cbm_ignore_program_t **program,
430 cbm_ignore_checked_status_t *status,
431 cbm_ignore_checked_error_t *error) {
432 const char *rules = step == 0 ? gic_rules0 : gic_rules1;
433 cbm_ignore_checked_control_t control = gic_control();
434 cbm_ignore_checked_parse_result_t out = {.pattern_count = 77};
435 *status = cbm_ignore_checked_parse(owner, rules, strlen(rules), &control, &out, error);
436 if (*status != CBM_IGNORE_CHECKED_OK)
437 return !out.program && out.pattern_count == 0;
438 *program = out.program;
439 return out.program && out.pattern_count == (step == 0 ? 2 : 1);
440}
441
442static bool gic_replay_match(cbm_ignore_checked_t *owner, const cbm_ignore_program_t **program,
443 size_t step, cbm_ignore_checked_status_t *status,

Callers 1

gic_replayFunction · 0.85

Calls 2

gic_controlFunction · 0.85
cbm_ignore_checked_parseFunction · 0.85

Tested by

no test coverage detected