The language discovery's rule gives the same bytes. */
| 45 | |
| 46 | /* The language discovery's rule gives the same bytes. */ |
| 47 | static 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 | |
| 56 | static const tic_file_t TIC_FILES[] = { |
| 57 | {".gitignore", "drop.c\n"}, |
no test coverage detected