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

Function gi_failing_dup

tests/test_gitignore.c:248–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246static int gi_dup_calls;
247static int gi_dup_fail_at;
248static char *gi_failing_dup(const char *s) {
249 if (++gi_dup_calls > gi_dup_fail_at) {
250 return NULL;
251 }
252 return strdup(s);
253}
254
255TEST(gi_merge_atomic_on_alloc_failure) {
256 cbm_gitignore_t *dst = cbm_gitignore_parse("*.log\n"); /* 1 pattern */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected