Branch Coverage

blib/lib/App/Rgit/Repository.pm
Criterion Covered Total %
branch 29 42 69.0


line true false branch
16 5 0 eval { do { POSIX::WIFEXITED(0); 1 } } ? :
18 5 0 eval { do { POSIX::WEXITSTATUS(0); 1 } } ? :
20 5 0 eval { do { POSIX::WIFSIGNALED(0); 1 } } ? :
22 5 0 eval { do { POSIX::WTERMSIG(0); 1 } } ? :
59 67 23 if (defined $dir) { }
67 23 67 if ($args{'fake'}) { }
70 8 12 unless -d $dir and -d "$dir/refs" and -d "$dir/objects" and -e "$dir/HEAD"
77 0 12 unless defined $last
79 8 4 if (@chunks and $last eq '.git') { }
4 0 elsif ($last =~ /(.+)\.git$/) { }
112 0 17 unless (CORE::chdir $dir)
156 0 18 unless $conf->isa('App::Rgit::Config')
160 13 5 unless ($self->fake)
168 5 13 if exists $ENV{'GIT_DIR'}
169 5 13 if exists $ENV{'GIT_EXEC_PATH'}
173 0 18 if ($? == -1)
179 18 0 if &$WIFEXITED($?)
181 0 18 if (&$WIFSIGNALED($?)) { }
10 8 elsif ($ret) { }
184 0 0 if ($sig == 2 or $sig == 3)
192 13 5 wantarray ? :