Branch Coverage

xs/Commit.xs
Criterion Covered Total %
branch 62 96 64.5


line true false branch
16 8 0 repo_ptr = INT2PTR(Repository, SvIV((SV *) repo));
55 6 29 if (items > 7) {
58 5 1 if (SvOK(sv_update_ref))
5 0 if (SvOK(sv_update_ref))
0 5 if (SvOK(sv_update_ref))
64 28 35 while ((c = av_fetch(parents, i++, 0))) {
65 28 0 if (!c || !SvOK(*c))
0 28 if (!c || !SvOK(*c))
0 0 if (!c || !SvOK(*c))
0 0 if (!c || !SvOK(*c))
68 0 28 Renew(commit_parents, count + 1, git_commit *);
86 35 0 GIT_NEW_OBJ_WITH_MAGIC(
119 2 2 if (rc == GIT_ENOTFOUND) {
124 2 0 GIT_NEW_OBJ_WITH_MAGIC(
179 0 2 if (msg == NULL)
187 4 2 for (i = 0; i < trailers.count; ++i) {
192 2 2 if (!hv_exists(result, key, length))
320 7 0 ctx = GIMME_V;
322 6 1 if (ctx != G_VOID) {
330 4 2 if (ctx == G_ARRAY) {
333 4 4 for (i = 0; i < count; i++) {
343 0 4 mXPUSHs(tmp);
348 0 2 mXPUSHs(newSViv((int) count));
371 1 0 repo_ptr = INT2PTR(Repository, SvIV((SV *) repo));
373 1 0 if (items == 3) {
434 2 1 if (items >= 2) {
435 0 2 if (SvOK(ST(1))) {
0 0 if (SvOK(ST(1))) {
0 0 if (SvOK(ST(1))) {
442 2 0 if ((opt = git_hv_int_entry(opts, "patch_no")))
443 2 0 patch_no = (size_t) SvIV(opt);
445 2 0 if ((opt = git_hv_int_entry(opts, "total_patches")))
446 2 0 total_patches = (size_t) SvIV(opt);
448 1 1 if ((hopt = git_hv_hash_entry(opts, "flags"))) {
449 1 0 if ((opt = git_hv_int_entry(hopt, "exclude_subject_patch_marker"))) {
450 1 0 if (SvIV(opt))
1 0 if (SvIV(opt))
457 1 2 if (items >= 3) {
470 0 3 if (rc != GIT_OK) {
502 5 2 if (items >= 2) {
503 1 4 if (SvOK(ST(1))) {
1 0 if (SvOK(ST(1))) {
0 1 if (SvOK(ST(1))) {
504 2 2 if (parent_count == 0)
511 1 4 if (items >= 3) {
516 3 2 if (parent_count > 0) {
517 1 2 if (requested_parent > (parent_count - 1))
531 4 0 repo_ptr = INT2PTR(Repository, SvIV((SV *) repo));