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

Function str_ends_with

src/pipeline/pass_tests.c:55–58  ·  view source on GitHub ↗

Helper to check suffix. */

Source from the content-addressed store, hash-verified

53
54/* Helper to check suffix. */
55static bool str_ends_with(const char *s, size_t slen, const char *suffix) {
56 size_t sflen = strlen(suffix);
57 return slen >= sflen && strcmp(s + slen - sflen, suffix) == 0;
58}
59
60/* Check if a file path looks like a test file (language-agnostic). */
61bool cbm_is_test_path(const char *path) {

Callers 1

cbm_is_test_pathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected