| deps/libgit2/src/util/fs_path.h | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 16 | 26 | 61.5 |
| line | true | false | branch |
|---|---|---|---|
| 94 | 1761 | 1289 | return (name[0] == '.' && |
| 981 | 780 | return (name[0] == '.' && | |
| 95 | 780 | 201 | (name[1] == '\0' || |
| 96 | 780 | 0 | (name[1] == '.' && name[2] == '\0'))); |
| 387 | 2358 | 51 | while (*p && *c) { |
| 2358 | 0 | while (*p && *c) { | |
| 390 | 0 | 2358 | if (*p++ != *c++) |
| 394 | 0 | 51 | if (*p != '\0') |
| 397 | 0 | 51 | if (*c == '\0') { |
| 398 | 0 | 0 | if (prefixlen) |
| 404 | 51 | 0 | if (*c == '/' || lastslash) { |
| 51 | 0 | if (*c == '/' || lastslash) { | |
| 405 | 51 | 0 | if (prefixlen) |