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

Function gic_expired

tests/test_gitignore_checked.c:759–781  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

757}
758
759static bool gic_expired(cbm_ignore_checked_t *owner, const cbm_ignore_program_t *program,
760 bool parsing) {
761 cbm_ignore_checked_control_t control = gic_control();
762 control.deadline_ms = 1;
763 cbm_ignore_checked_error_t error;
764 cbm_ignore_checked_status_t status;
765 if (cbm_now_ms() <= 1)
766 return false;
767 if (parsing) {
768 cbm_ignore_checked_parse_result_t out = {.program = program, .pattern_count = 77};
769 status = cbm_ignore_checked_parse(owner, "x", 1, &control, &out, &error);
770 if (out.program || out.pattern_count)
771 return false;
772 } else {
773 cbm_ignore_decision_t decision = CBM_IGNORE_IGNORED;
774 status =
775 cbm_ignore_checked_match(owner, program, "x", 1, false, &control, &decision, &error);
776 if (decision != CBM_IGNORE_UNAVAILABLE)
777 return false;
778 }
779 return gic_status(status, CBM_IGNORE_CHECKED_DEADLINE, &error) &&
780 gic_terminal(owner, program, CBM_IGNORE_CHECKED_DEADLINE);
781}
782
783TEST(gic_f_cancellation_deadline_and_poll_evidence) {
784 gic_fixture f;

Callers 1

Calls 6

gic_controlFunction · 0.85
cbm_now_msFunction · 0.85
cbm_ignore_checked_parseFunction · 0.85
cbm_ignore_checked_matchFunction · 0.85
gic_statusFunction · 0.85
gic_terminalFunction · 0.85

Tested by

no test coverage detected