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

Function tc_line_at

tests/test_test_conventions.c:121–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121static unsigned tc_line_at(const char *source, uint32_t offset) {
122 size_t length = strlen(source);
123 if (offset >= length) return 0;
124 unsigned line = 1;
125 for (uint32_t i = 0; i < offset; i++) if (source[i] == '\n') line++;
126 return line;
127}
128
129static bool tc_body_owner(const CBMFileResult *result, const char *source,
130 const char *name, unsigned line) {

Callers 1

tc_body_ownerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected