Branch Coverage

xs/Index.xs
Criterion Covered Total %
branch 58 86 67.4


line true false branch
31 48 2 if (SvPOK(entry))
32 48 0 rc = git_index_add_bypath(self, SvPVbyte_nolen(entry));
56 6 5 if (items == 4)
61 1 9 if (!SvOK(buffer))
1 0 if (!SvOK(buffer))
1 0 if (!SvOK(buffer))
64 1 8 if (SvROK(buffer))
99 4 0 if ((lopt = git_hv_list_entry(opts, "paths")))
102 3 1 if ((hopt = git_hv_hash_entry(opts, "flags"))) {
144 1 1 if (items == 2)
190 1 39 if (items == 2) {
192 1 0 repo_ptr = INT2PTR(Repository, SvIV((SV *) repo));
199 1 38 if (repo == NULL)
202 38 0 repo_ptr = INT2PTR(Repository, SvIV((SV *) repo));
236 1 1 if (rc != GIT_ENOTFOUND) {
266 3 0 if (items == 5 && SvOK(ST(4))) {
0 3 if (items == 5 && SvOK(ST(4))) {
0 0 if (items == 5 && SvOK(ST(4))) {
0 0 if (items == 5 && SvOK(ST(4))) {
272 2 0 repo_ptr = INT2PTR(Repository, SvIV((SV *) repo));
316 1 0 if ((lopt = git_hv_list_entry(opts, "paths")))
337 2 1 if ((path = git_index_path(self)) == NULL)
353 1 2 if (repo == NULL)
375 1 0 repo_ptr = INT2PTR(Repository, SvIV((SV *) repo));
377 1 0 if (items == 2) {
415 2 1 if (count > 0) {
418 4 2 for (i = 0; i < count; ++i) {
421 0 4 mXPUSHs(entry);
464 1 0 if (rc != GIT_ENOTFOUND) {
533 1 1 while ((rc = git_index_conflict_next(
550 0 1 mXPUSHs(c);
571 4 0 if ((lopt = git_hv_list_entry(opts, "paths")))
589 3 0 int ctx = GIMME_V;
592 2 1 if (ctx != G_VOID) {
593 1 1 if (ctx == G_ARRAY) {
596 0 1 mXPUSHs(newSVpv("ignore_case", 0));
597 0 1 mXPUSHs(newSViv((caps & GIT_INDEXCAP_IGNORE_CASE) ? 1 : 0));
598 0 1 mXPUSHs(newSVpv("no_filemode", 0));
599 0 1 mXPUSHs(newSViv((caps & GIT_INDEXCAP_NO_FILEMODE) ? 1 : 0));
600 0 1 mXPUSHs(newSVpv("no_symlinks", 0));
601 0 1 mXPUSHs(newSViv((caps & GIT_INDEXCAP_NO_SYMLINKS) ? 1 : 0));
605 0 1 mXPUSHs(newSViv(3));
618 1 2 if (items == 2) {