Branch Coverage

xs/Remote.xs
Criterion Covered Total %
branch 22 76 28.9


line true false branch
20 1 2 if (items >= 5) {
39 3 0 GIT_NEW_OBJ_WITH_MAGIC(
71 2 0 GIT_NEW_OBJ_WITH_MAGIC(
94 0 1 if (rc == GIT_ENOTFOUND) {
103 1 0 GIT_NEW_OBJ_WITH_MAGIC(
154 0 0 if (rc == GIT_ENOTFOUND) {
157 0 0 if (rc != GIT_OK)
194 1 0 if (items >= 5)
201 1 0 if (p != NULL && problems.count > 0) {
0 1 if (p != NULL && problems.count > 0) {
203 0 0 for (i = 0; i < problems.count; ++i)
223 1 2 if (items == 2) {
235 2 0 if ((url = git_remote_url(remote -> remote)))
257 1 1 if (items == 2) {
269 0 1 if ((pushurl = git_remote_pushurl(remote -> remote)))
328 3 3 for (i = 0; i < count; ++i) {
346 0 3 mXPUSHs(tmp);
372 0 0 if (items >= 2) {
377 0 0 if (items >= 3) {
388 0 0 if (refspecs) {
410 0 0 if (items >= 3) {
418 0 0 if (rc == GIT_OK || rc == GIT_EUSER)
0 0 if (rc == GIT_OK || rc == GIT_EUSER)
437 0 0 if (strcmp(dir, "fetch") == 0)
439 0 0 else if (strcmp(dir, "push") == 0)
445 0 0 if (items >= 3) {
474 0 0 if (items >= 2) {
479 0 0 if (items >= 3) {
490 0 0 if (refspecs) {
511 2 0 if (items >= 3) {
519 0 2 if (rc == GIT_OK || rc == GIT_EUSER)
0 0 if (rc == GIT_OK || rc == GIT_EUSER)
533 0 0 if (items >= 2) {
553 0 0 if (items >= 2) {
584 0 0 for (i = 0; i < count; ++i) {
595 0 0 if (local)
601 0 0 0 : strlen(peel));
630 3 10 if (remote -> owned)