Branch Coverage

xs/Walker.xs
Criterion Covered Total %
branch 35 40 87.5


line true false branch
19 2 0 GIT_NEW_OBJ_WITH_MAGIC(
39 6 3 while ((entry = av_fetch(order_list, i++, 0))) {
40 5 1 if (SvPOK(*entry)) {
41 5 0 const char *mode_str = SvPVbyte_nolen(*entry);
43 1 4 if (strcmp(mode_str, "none") == 0)
45 1 3 else if (strcmp(mode_str, "topological") == 0)
47 1 2 else if (strcmp(mode_str, "time") == 0)
49 1 1 else if (strcmp(mode_str, "reverse") == 0)
123 4 4 if (items == 3) {
127 1 3 if (git_sv_to_commitish(repo, ST(1), &start) == NULL)
129 1 2 if (git_sv_to_commitish(repo, ST(2), &end) == NULL)
139 3 1 } else if (items == 2) {
213 13 24 if (rc == GIT_ITEROVER)
234 3 0 ctx = GIMME_V;
236 2 1 if (ctx != G_VOID) {
243 6 2 while ((rc = git_revwalk_next(&oid, walk)) != GIT_ITEROVER) {
246 3 3 if (ctx == G_ARRAY) {
257 0 3 mXPUSHs(tmp);
263 1 1 if (ctx == G_ARRAY) {
266 0 1 mXPUSHs(newSViv((int) count));