Branch Coverage

lib/CPANPLUS/Internals.pm
Criterion Covered Total %
branch 33 48 68.8


line true false branch
93 15 1332 if @_ > 1
153 0 12 if (my $id = $class->_last_id)
161 0 12 unless my $args = check($Tmpl, \%hash)
172 24 12 $$callback_map{$name} ? :
24 36 ref $$callback_map{$name} ? :
178 4 4 ref $$callback_map{$name} ? :
195 0 12 unless $conf->_set_build('startdir', cwd())
198 12 0 if $conf->get_conf('passive')
202 0 12 unless ($id == $args->_id)
231 0 8 unless my $args = check($tmpl, \%hash)
238 4 10 if ($what eq 'lib') { }
2 8 elsif ($what eq 'modules') { }
2 6 elsif ($what eq 'methods') { }
3 3 elsif ($what eq 'load') { }
263 0 3 if (not exists $$self{$cache} && exists $$Tmpl{$cache}) { }
319 0 7 unless my $self = shift @_
330 0 7 unless check($tmpl, \%hash)
332 0 7 unless $self->_callbacks->$name($code)
394 0 7 unless check($tmpl, \%hash)
397 9 12 unless grep {$_ eq $lib;} @INC
447 0 13 unless my $obj = shift @_
449 0 13 unless (sub {
461 0 289 unless my $id = shift @_
469 0 1 unless my $id = shift @_