Branch Coverage

blib/lib/Git/Repository.pm
Criterion Covered Total %
branch 64 64 100.0


line true false branch
29 507 1 ref $_[0] ? :
47 2 3 if ref $plugin
48 1 4 substr($plugin, 0, 1) eq '+' ? :
52 1 4 unless eval "use $plugin; 1;"
71 24 114 ref $_ eq 'HASH' ? :
72 1 54 if @o > 1
82 4 50 if defined delete $arg{'repository'}
84 2 48 if defined delete $arg{'working_copy'}
90 1 47 if keys %arg
93 4 43 defined $options->{'cwd'} ? :
96 23 24 if defined $git_dir
99 17 29 if defined $work_tree
105 15 26 defined $work_tree ? :
4 41 defined $options->{'cwd'} ? :
109 23 22 unless defined $git_dir
118 29 14 if (not defined $work_tree) { }
124 20 9 if defined $git_dir
127 23 6 if ($self->run('config', '--bool', 'core.bare') ne 'true')
135 12 2 if (not defined $git_dir) { }
143 1 11 $cdup ? :
158 2 41 if $self->{'git_dir'} ne $gitdir
161 1 40 if defined $input
162 3 38 if defined $fatal
178 2 2 unless ref $_[0]
189 3 805 ref $_ eq 'CODE' ? :
194 140 215 ref $self ? :
218 6 57 ref $_ && ref $_ eq 'HASH' ? :
3 33 ref $_ && ref $_ eq 'HASH' ? :
12 41 ref $_ && ref $_ eq 'HASH' ? :
6 55 ref $_ && ref $_ eq 'HASH' ? :
6 53 ref $_ && ref $_ eq 'HASH' ? :
6 50 ref $_ && ref $_ eq 'HASH' ? :