Branch Coverage

deps/libgit2/src/libgit2/ident.c
Criterion Covered Total %
branch 1 36 2.7


line true false branch
19 0 0 while (len > 3 && (found = memchr(start, '$', len)) != NULL) {
0 0 while (len > 3 && (found = memchr(start, '$', len)) != NULL) {
21 0 0 if (remaining < 3)
27 0 0 if (start[0] == 'I' && start[1] == 'd')
0 0 if (start[0] == 'I' && start[1] == 'd')
31 0 0 if (len < 3 || !found)
0 0 if (len < 3 || !found)
35 0 0 if ((found = memchr(start + 2, '$', len - 2)) == NULL)
51 0 0 if (!git_filter_source_id(src))
56 0 0 if (ident_find_id(&id_start, &id_end, from->ptr, from->size) < 0)
63 0 0 if (git_str_grow(to, need_size) < 0)
72 0 0 return git_str_oom(to) ? -1 : 0;
81 0 0 if (ident_find_id(&id_start, &id_end, from->ptr, from->size) < 0)
87 0 0 if (git_str_grow(to, need_size) < 0)
94 0 0 return git_str_oom(to) ? -1 : 0;
107 0 0 if (git_str_is_binary(from))
110 0 0 if (git_filter_source_mode(src) == GIT_FILTER_SMUDGE)
130 0 87 if (f == NULL)