Branch Coverage

blib/lib/GitHub/Crud.pm
Criterion Covered Total %
branch 3 298 1.0


line true false branch
42 0 0 if ($http and $http =~ /HTTP/u and $http =~ /200|201|404|409|422/u) { }
48 0 0 if ($ps == 0) { }
49 0 0 if (length $_ == 0) { }
55 0 0 if ($R->can($name)) { }
66 0 0 if (keys %can)
71 0 0 if (@data)
74 0 0 if (ref($p) =~ /hash/isu and my $c = $p->content)
188 0 0 if $@
204 0 0 $fileData ? :
221 0 0 if defined $s
223 0 0 if $r
234 0 0 unless $s
242 0 0 unless $gitHub->personalAccessToken
244 0 0 if (my $pat = $gitHub->personalAccessToken)
255 0 0 if $ref and $b
256 0 0 if not $ref and $b
275 0 0 if ($curl =~ /command not found/u)
311 0 0 unless $user
312 0 0 unless $repo
323 0 0 if $failed and $gitHub->confessOnFailure
326 0 0 if (not $failed and &reftype(scalar $r->data) =~ /array/iu)
336 0 0 unless ($gitHub->nonRecursive)
351 0 0 if ($d and length $d > 8)
355 0 0 if $h =~ /\A504b/iu
356 0 0 if $h =~ /\Ad0cf11e0/iu
357 0 0 if $h =~ /\Affd8ff/iu
358 0 0 if $h =~ /\A89504e470d0a1a0a/iu
359 0 0 if $h =~ /\A4D546864/iu
360 0 0 if $h =~ /\A49443340/iu
368 0 0 unless $user
369 0 0 unless $repo
370 0 0 unless $file
379 0 0 if $failed and $gitHub->confessOnFailure
381 0 0 if ($failed) { }
386 0 0 &specialFileData($d) ? :
395 0 0 unless ($data)
396 0 0 if ($File) { }
409 0 0 unless $user
410 0 0 unless $repo
411 0 0 unless $file
415 0 0 unless (&specialFileData($data))
422 0 0 if $File
425 0 0 $s ? :
438 0 0 if $b
451 0 0 $status == 201 ? :
0 0 $status == 200 ? :
452 0 0 $success ? :
453 0 0 if not $success and $gitHub->confessOnFailure
460 0 0 unless defined $sha
463 0 0 unless $user
464 0 0 unless $repo
473 0 0 $success ? :
474 0 0 if not $success and $gitHub->confessOnFailure
476 0 0 $success ? :
481 0 0 unless defined $data
484 0 0 unless $user
485 0 0 unless $repo
497 0 0 $status == 201 ? :
0 0 $status == 200 ? :
498 0 0 $success ? :
499 0 0 if not $success and $gitHub->confessOnFailure
501 0 0 $success ? :
506 0 0 unless defined $target
508 0 0 if (defined $r)
523 0 0 unless @file
533 0 0 if (not $gitHub->failed and &reftype(scalar $gitHub->response->data) =~ /array/iu)
535 0 0 if $_->path eq $gitHub->gitFile
545 0 0 if $gitHub->exists
549 0 0 if ($gitHub->exists)
551 0 0 if $gitHub->delete
561 0 0 unless $user
562 0 0 unless $repo
563 0 0 unless $file
568 0 0 unless $s
574 0 0 if $success
575 0 0 $success ? :
576 0 0 if not $success and $gitHub->confessOnFailure
577 0 0 $success ? :
586 0 0 unless $user
587 0 0 unless $repo
593 0 0 if not $success and $gitHub->confessOnFailure
602 0 0 unless $user
603 0 0 unless $repo
610 0 0 if not $success and $gitHub->confessOnFailure
618 0 0 unless my $data = $commits->data
625 0 0 unless -d $folder
628 0 0 unless $user
629 0 0 unless $repo
630 0 0 unless $bran
637 0 0 @files ? :
661 0 0 unless $success
669 0 0 unless my $s = $c{$b}
690 0 0 unless $success
712 0 0 if ($branch->status == 201) { }
0 0 elsif ($branch->status == 422) { }
726 0 0 unless $success
739 0 0 unless $user
740 0 0 unless $repo
748 0 0 $success ? :
749 0 0 if not $success and $gitHub->confessOnFailure
750 0 0 $success ? :
756 0 0 unless $user
757 0 0 unless $repo
758 0 0 unless $webUrl
761 0 0 $secret ? :
764 0 0 unless $webUrl =~ m[\Ahttps?://]u
779 0 0 $success ? :
780 0 0 if not $success and $gitHub->confessOnFailure
781 0 0 $success ? :
788 0 0 unless $user
795 0 0 $success ? :
796 0 0 if not $success and $gitHub->confessOnFailure
797 0 0 $success ? :
803 0 0 unless $user
804 0 0 unless $repo
805 0 0 $gitHub->private ? :
816 0 0 $success ? :
817 0 0 if not $success and $gitHub->confessOnFailure
818 0 0 $success ? :
838 0 0 unless $user
839 0 0 unless $repo
840 0 0 unless $body
841 0 0 unless $title
853 0 0 $success ? :
854 0 0 if not $success and $gitHub->confessOnFailure
856 0 0 $success ? :
877 0 0 unless $userid
878 0 0 unless $repository
879 0 0 unless $file
943 0 0 unless $userid
944 0 0 unless $repository
960 0 0 if (my $r = $ENV{'GITHUB_REPOSITORY'})
968 0 0 unless ($g->personalAccessToken)
979 0 0 if (my $g = ¤tRepo())
988 0 0 if (my $g = ¤tRepo())
996 0 0 unless -e $target
997 0 0 if (my $g = ¤tRepo())
1005 0 0 if (my $g = ¤tRepo())
1015 0 0 unless $user
1016 0 0 unless $pat
1021 0 0 unless -e $file
1024 0 0 unless $pat eq $p->{'pat'}
1029 0 0 unless $user
1031 0 0 if (length($gitHub->personalAccessTokenFolder // accessFolder()) == 43)
1035 0 0 if ($ENV{'GITHUB_TOKEN'})
1043 0 0 unless my $a = $p->{'pat'}
2366 0 1 if eval "eof(${p}::DATA)"
2368 0 1 if $@
2370 0 1 if $@