Condition Coverage

blib/lib/CPAN/Shell.pm
Criterion Covered Total %
condition 8 163 4.9


and 3 conditions

line !l l&&!r l&&r condition
400 0 0 0 defined $o_what[0] and $o_what[0] =~ /help/i
404 0 0 0 $what =~ s/^-// and exists $CPAN::DEBUG{$what}
530 0 0 0 $S{'start'} and $S{'end'}
534 0 0 0 $$res{'ok'} and @{$$res{'ok'};}
543 0 0 0 $$res{'no'} and @{$$res{'no'};}
606 0 0 0 $file and -f $file
868 0 0 0 -e "$build_dir/Build.PL" and not exists $req{'Module::Build'}
874 0 0 0 defined $v && length $v && $v > 0
1048 0 0 0 $what and $what =~ /^[aru]$/
1169 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
1252 0 0 0 $only_id && $silent
1295 0 0 0 $only_id and $only_id != (UNIVERSAL::can($$d{$nosayer}, 'commandid') ? $$d{$nosayer}->commandid : $CPAN::CurrentCommandId)
1519 0 0 0 $obj and UNIVERSAL::can($obj, 'id')
0 0 0 $obj and UNIVERSAL::can($obj, 'id') and $obj->id
1646 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')
1654 165 0 0 $colorize_output and not $CPAN::META->has_inst('Term::ANSIColor')
1686 0 0 0 $CPAN::DEBUG and $swhat =~ /^Debug\(/
1907 0 0 0 $s =~ /[\$\@\%]/ and $meth eq 'dump'
1915 0 0 0 ref $@ and $@->isa('CPAN::Exception::RecursiveDependency')
2005 0 0 0 $$obj{'reqtype'} eq 'b' and $reqtype =~ /^[rc]$/
2007 0 0 0 exists $$obj{'install'} and UNIVERSAL::can($$obj{'install'}, 'failed') ? $$obj{'install'}->failed : $$obj{'install'} =~ /^NO/
2026 0 0 0 $pragma and $obj->can($pragma)
2059 0 0 0 $meth eq 'make' and $$obj{'reqtype'} eq 'b'
2081 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 ||= ''
487 0 0 $$fullstats{'history'} || []
507 0 0 $$last{'filesize'} || 0
509 0 0 $S{'ok'}{$url} ||= {}
511 0 0 $$s{'dlsize'} ||= 0
513 0 0 $$s{'dltime'} ||= 0
558 0 0 $command ||= ''
622 0 0 $$CPAN::Shell::reload{$f} ||= -1
624 0 0 $args ||= {}
759 0 0 $stems{$stem} ||= []
1128 0 0 $inst_file || ''
1144 0 0 $seen{$file} ||= 0
1314 0 0 $$d{$failed}{'TIME'} || 0
1688 0 0 $$CPAN::Config{'colorize_debug'} || 'black on_cyan'
1690 0 0 eval { do { Term::ANSIColor::color($ornament) } } || ''
1718 0 164 $$CPAN::Config{'colorize_print'} || 'bold blue on_white'
1751 0 1 $$CPAN::Config{'colorize_warn'} || 'bold red on_white'
1779 0 0 $$CPAN::Config{'colorize_print'} || 'bold blue on_white'
1780 0 0 eval { do { Term::ANSIColor::color($ornament) } } || ''
1964 0 0 $q->reqtype || ''
1965 0 0 $q->optional || ''
1977 0 0 $$obj{'reqtype'} ||= ''

or 3 conditions

line l !l&&r !l&&!r condition
374 0 0 0 not @o_what or $cfilter
505 0 0 0 $S{'end'} ||= $$last{'end'}
625 0 0 0 $must_reload ||= $$args{'reloforce'}
1452 0 0 7 $s =~ m[/] or substr($s, -1, 1) eq '.'
1533 0 0 0 $err ||= $@
1734 0 6 1 not $$CPAN::Config{$vname} or $$CPAN::Config{$vname} =~ /^v/
1817 0 0 0 $ENV{'AUTOMATED_TESTING'} or not -t STDOUT
1979 0 0 0 $type eq 'CPAN::Distribution' or $type eq 'CPAN::Bundle'
1980 0 0 0 $$obj{'mandatory'} ||= !$optional
1983 0 0 0 $$obj{'mandatory'} ||= !$optional
1985 0 0 0 $$d{'mandatory'} ||= !$optional