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

Function tic_expected

tests/test_test_impact_classify.c:47–54  ·  view source on GitHub ↗

The language discovery's rule gives the same bytes. */

Source from the content-addressed store, hash-verified

45
46/* The language discovery's rule gives the same bytes. */
47static CBMLanguage tic_expected(const char *path, const char *content) {
48 const char *slash = strrchr(path, '/');
49 const char *name = slash ? slash + 1 : path;
50 size_t len = strlen(content);
51 size_t probe = cbm_language_probe_bytes(name);
52 size_t head = len < probe ? len : probe;
53 return cbm_language_classify(name, (const unsigned char *)content, head, len > head, true);
54}
55
56static const tic_file_t TIC_FILES[] = {
57 {".gitignore", "drop.c\n"},

Callers 1

Calls 2

cbm_language_probe_bytesFunction · 0.85
cbm_language_classifyFunction · 0.85

Tested by

no test coverage detected