Condition Coverage

blib/lib/CPAN/Shell.pm
Criterion Covered Total %
condition 8 160 5.0


and 3 conditions

line !l l&&!r l&&r condition
403 0 0 0 defined $o_what[0] and $o_what[0] =~ /help/i
407 0 0 0 $what =~ s/^-// and exists $CPAN::DEBUG{$what}
533 0 0 0 $S{'start'} and $S{'end'}
537 0 0 0 $res->{'ok'} and @{$res->{'ok'};}
546 0 0 0 $res->{'no'} and @{$res->{'no'};}
609 0 0 0 $file and -f $file
641 0 0 0 $includefile = $INC{$f} and -e $includefile
885 0 0 0 $what and $what =~ /^[aru]$/
1006 0 0 0 $CPAN::Shell::COLOR_REGISTERED and $CPAN::META->has_inst('Term::ANSIColor')
0 0 0 $CPAN::Shell::COLOR_REGISTERED and $CPAN::META->has_inst('Term::ANSIColor') and $module->description
1089 0 0 0 $only_id && $silent
1135 0 0 0 $only_id and $only_id != (UNIVERSAL::can($d->{$nosayer}, 'commandid') ? $d->{$nosayer}->commandid : $CPAN::CurrentCommandId)
1356 0 0 0 $obj and UNIVERSAL::can($obj, 'id')
0 0 0 $obj and UNIVERSAL::can($obj, 'id') and $obj->id
1483 165 0 0 $colorize_output and $^O eq 'MSWin32'
165 0 0 $colorize_output and $^O eq 'MSWin32' and not $CPAN::META->has_inst('Win32::Console::ANSI')
1491 165 0 0 $colorize_output and not $CPAN::META->has_inst('Term::ANSIColor')
1523 0 0 0 $CPAN::DEBUG and $swhat =~ /^Debug\(/
1744 0 0 0 $s =~ /[\$\@\%]/ and $meth eq 'dump'
1752 0 0 0 ref $@ and $@->isa('CPAN::Exception::RecursiveDependency')
1842 0 0 0 $obj->{'reqtype'} eq 'b' and $reqtype =~ /^[rc]$/
1844 0 0 0 exists $obj->{'install'} and UNIVERSAL::can($obj->{'install'}, 'failed') ? $obj->{'install'}->failed : $obj->{'install'} =~ /^NO/
1863 0 0 0 $pragma and $obj->can($pragma)
1896 0 0 0 $meth eq 'make' and $obj->{'reqtype'} eq 'b'
1918 0 0 0 $CPAN::Config->{'halt_on_failure'} and $obj->{'mandatory'}
0 0 0 $CPAN::Config->{'halt_on_failure'} and $obj->{'mandatory'} and &CPAN::Distrostatus::something_has_just_failed()
0 0 0 $CPAN::Config->{'halt_on_failure'} and $obj->{'mandatory'} and &CPAN::Distrostatus::something_has_just_failed() and $self->mandatory_dist_failed

or 2 conditions

line l !l condition
369 0 0 $o_type ||= ''
375 0 0 $cfilter ||= ''
490 0 0 $fullstats->{'history'} || []
510 0 0 $last->{'filesize'} || 0
512 0 0 $S{'ok'}{$url} ||= {}
514 0 0 $s->{'dlsize'} ||= 0
516 0 0 $s->{'dltime'} ||= 0
561 0 0 $command ||= ''
625 0 0 $CPAN::Shell::reload->{$f} ||= -1
627 0 0 $args ||= {}
766 0 0 $stems{$stem} ||= []
965 0 0 $inst_file || ''
981 0 0 $seen{$file} ||= 0
1169 0 0 $d->{$failed}{'TIME'} || 0
1525 0 0 $CPAN::Config->{'colorize_debug'} || 'black on_cyan'
1527 0 0 eval { do { Term::ANSIColor::color($ornament) } } || ''
1556 0 164 $CPAN::Config->{'colorize_print'} || 'bold blue on_white'
1588 0 1 $CPAN::Config->{'colorize_warn'} || 'bold red on_white'
1616 0 0 $CPAN::Config->{'colorize_print'} || 'bold blue on_white'
1617 0 0 eval { do { Term::ANSIColor::color($ornament) } } || ''
1801 0 0 $q->reqtype || ''
1802 0 0 $q->optional || ''
1814 0 0 $obj->{'reqtype'} ||= ''

or 3 conditions

line l !l&&r !l&&!r condition
374 0 0 0 not @o_what or $cfilter
508 0 0 0 $S{'end'} ||= $last->{'end'}
628 0 0 0 $must_reload ||= $args->{'reloforce'}
1289 0 0 7 $s =~ m[/] or substr($s, -1, 1) eq '.'
1370 0 0 0 $err ||= $@
1571 0 6 1 not $CPAN::Config->{$vname} or $CPAN::Config->{$vname} =~ /^v/
1654 0 0 0 $ENV{'AUTOMATED_TESTING'} or not -t STDOUT
1816 0 0 0 $type eq 'CPAN::Distribution' or $type eq 'CPAN::Bundle'
1817 0 0 0 $obj->{'mandatory'} ||= !$optional
1820 0 0 0 $obj->{'mandatory'} ||= !$optional
1822 0 0 0 $d->{'mandatory'} ||= !$optional