Branch Coverage

xs/Tree.xs
Criterion Covered Total %
branch 24 42 57.1


line true false branch
32 1 2 if (rc == GIT_ENOTFOUND) {
37 2 0 GIT_NEW_OBJ_WITH_MAGIC(
76 12 0 ctx = GIMME_V;
78 11 1 if (ctx != G_VOID) {
84 10 1 if (ctx == G_ARRAY) {
87 27 10 for (i = 0; i < count; i++) {
101 0 27 mXPUSHs(tmp);
106 0 1 mXPUSHs(newSViv((int) count));
128 1 1 if (!tmp_entry) {
158 1 1 if (rc == GIT_ENOTFOUND) {
186 5 0 if (items == 2) {
191 5 0 if (tree) {
201 1 4 if (diff_opts.pathspec.count > 0)
228 1 0 if (items == 4) {
233 0 1 if (SvOK(ancestor_tree))
0 0 if (SvOK(ancestor_tree))
0 0 if (SvOK(ancestor_tree))
236 0 1 if (SvOK(their_tree))
0 0 if (SvOK(their_tree))
0 0 if (SvOK(their_tree))
242 1 0 repo_ptr = INT2PTR(Repository, SvIV((SV *) repo));