Condition Coverage

blib/lib/CPAN/Shell.pm
Criterion Covered Total %
condition 8 157 5.1


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
881 0 0 0 $what and $what =~ /^[aru]$/
1002 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
1085 0 0 0 $only_id && $silent
1131 0 0 0 $only_id and $only_id != (UNIVERSAL::can($d->{$nosayer}, 'commandid') ? $d->{$nosayer}->commandid : $CPAN::CurrentCommandId)
1352 0 0 0 $obj and UNIVERSAL::can($obj, 'id')
0 0 0 $obj and UNIVERSAL::can($obj, 'id') and $obj->id
1479 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')
1487 165 0 0 $colorize_output and not $CPAN::META->has_inst('Term::ANSIColor')
1519 0 0 0 $CPAN::DEBUG and $swhat =~ /^Debug\(/
1740 0 0 0 $s =~ /[\$\@\%]/ and $meth eq 'dump'
1748 0 0 0 ref $@ and $@->isa('CPAN::Exception::RecursiveDependency')
1838 0 0 0 $obj->{'reqtype'} eq 'b' and $reqtype =~ /^[rc]$/
1840 0 0 0 exists $obj->{'install'} and UNIVERSAL::can($obj->{'install'}, 'failed') ? $obj->{'install'}->failed : $obj->{'install'} =~ /^NO/
1859 0 0 0 $pragma and $obj->can($pragma)
1892 0 0 0 $meth eq 'make' and $obj->{'reqtype'} eq 'b'
1914 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 ||= {}
762 0 0 $stems{$stem} ||= []
961 0 0 $inst_file || ''
977 0 0 $seen{$file} ||= 0
1165 0 0 $d->{$failed}{'TIME'} || 0
1521 0 0 $CPAN::Config->{'colorize_debug'} || 'black on_cyan'
1523 0 0 eval { do { Term::ANSIColor::color($ornament) } } || ''
1552 0 164 $CPAN::Config->{'colorize_print'} || 'bold blue on_white'
1584 0 1 $CPAN::Config->{'colorize_warn'} || 'bold red on_white'
1612 0 0 $CPAN::Config->{'colorize_print'} || 'bold blue on_white'
1613 0 0 eval { do { Term::ANSIColor::color($ornament) } } || ''
1797 0 0 $q->reqtype || ''
1798 0 0 $q->optional || ''
1810 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'}
1285 0 0 7 $s =~ m[/] or substr($s, -1, 1) eq '.'
1366 0 0 0 $err ||= $@
1567 0 6 1 not $CPAN::Config->{$vname} or $CPAN::Config->{$vname} =~ /^v/
1650 0 0 0 $ENV{'AUTOMATED_TESTING'} or not -t STDOUT
1812 0 0 0 $type eq 'CPAN::Distribution' or $type eq 'CPAN::Bundle'
1813 0 0 0 $obj->{'mandatory'} ||= !$optional
1816 0 0 0 $obj->{'mandatory'} ||= !$optional
1818 0 0 0 $d->{'mandatory'} ||= !$optional