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

Function gic_parse

tests/test_gitignore_checked.c:75–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73}
74
75static bool gic_parse(cbm_ignore_checked_t *owner, const void *bytes, size_t length, size_t count,
76 const cbm_ignore_program_t **program) {
77 cbm_ignore_checked_control_t control = gic_control();
78 cbm_ignore_checked_parse_result_t out = {0};
79 cbm_ignore_checked_error_t error;
80 cbm_ignore_checked_status_t status =
81 cbm_ignore_checked_parse(owner, bytes, length, &control, &out, &error);
82 if (!gic_status(status, CBM_IGNORE_CHECKED_OK, &error) || !out.program ||
83 out.pattern_count != count)
84 return false;
85 *program = out.program;
86 return true;
87}
88
89static bool gic_match(cbm_ignore_checked_t *owner, const cbm_ignore_program_t *program,
90 const char *path, bool directory, cbm_ignore_decision_t expected) {

Callers 7

gic_semantic_oneFunction · 0.85
gic_depth_caseFunction · 0.85
gic_attempt_caseFunction · 0.85
gic_max_depth_boundaryFunction · 0.85
gic_long_runFunction · 0.85
gic_parse_oomFunction · 0.85

Calls 3

gic_controlFunction · 0.85
cbm_ignore_checked_parseFunction · 0.85
gic_statusFunction · 0.85

Tested by

no test coverage detected