Condition Coverage

blib/lib/CPAN/FirstTime.pm
Criterion Covered Total %
condition 0 232 0.0


and 3 conditions

line !l l&&!r l&&r condition
821 0 0 0 $args{'args'} && @{$args{'args'};}
874 0 0 0 $_conf && $_conf =~ /^y/i
969 0 0 0 $matcher and $CPAN::Config->{'test_report'}
0 0 0 $matcher and $CPAN::Config->{'test_report'} and $CPAN::META->has_inst('CPAN::Reporter')
0 0 0 $matcher and $CPAN::Config->{'test_report'} and $CPAN::META->has_inst('CPAN::Reporter') and 'CPAN::Reporter'->can('configure')
1033 0 0 0 $path and 'File::Spec'->file_name_is_absolute($path)
1099 0 0 0 $default and $CPAN::Config->{'install_help'} eq 'sudo'
1118 0 0 0 exists $CPAN::HandleConfig::keys{'mbuild_install_build_command'} and $^O ne 'MSWin32'
1375 0 0 0 $locallib and $dist = $locallib->distribution
1401 0 0 0 $matcher and not $CPAN::Config->{'auto_commit'}
1497 0 0 0 $CPAN::META->has_usable('File::HomeDir') and 'File::HomeDir'->VERSION >= 0.65
1514 0 0 0 $CPAN::META->has_usable('Net::Ping') and 'CPAN::Version'->vgt('Net::Ping'->VERSION, '2.13')
1550 0 0 0 $matcher and not $progname =~ /$matcher/
1560 0 0 0 $progname eq 'ncftp' and $CPAN::Config->{'ncftpget'} gt ' '
1592 0 0 0 $progname eq 'make' and $disabling || !_check_found($path)
1593 0 0 0 $disabling and $showed_make_warning
1607 0 0 0 $shortcut and not $matcher
1680 0 0 0 $dir =~ /^~/ and !$last_ans || $ans ne $last_ans
1705 0 0 0 -d $ans and -w _
1723 0 0 0 not $CPAN::FirstTime::auto_config and !$m || $item =~ /$m/
1742 0 0 0 not $CPAN::FirstTime::auto_config and !$m || $item =~ /$m/
1759 0 0 0 not $CPAN::FirstTime::auto_config and !$m || $item =~ /$m/
1794 0 0 0 -f $mby and -f $m
0 0 0 -f $mby and -f $m and -M $m < -M $mby
1801 0 0 0 $mby and -f $mby
0 0 0 $mby and -f $mby and -s _ > 0
1864 0 0 0 -f $mby and -s _ > 0
1924 0 0 0 $require_nonempty and not @nums
1993 0 0 0 $_ and ref $_
2036 0 0 0 @previous_urls and @countries
2144 0 0 0 -w $CPAN::FirstTime::Config{'installprivlib'} && -w $CPAN::FirstTime::Config{'installarchlib'} && -w $CPAN::FirstTime::Config{'installsitelib'} && -w $CPAN::FirstTime::Config{'installsitearch'}
2147 0 0 0 $ENV{'PERL_MM_OPT'} and $ENV{'PERL_MM_OPT'} =~ /install_base/i

or 2 conditions

line l !l condition
856 0 0 $CPAN::Config ||= {}
898 0 0 $CPAN::Config->{'install_help'} ||= ''
1026 0 0 $CPAN::Config->{'pager'} || $ENV{'PAGER'} || find_exe('less', \@path) || find_exe('more', \@path) || ($^O eq 'MacOS' ? $ENV{'EDITOR'} : 0) || 'more'
1043 0 0 $path ||= 'sh'
1098 0 0 $CPAN::Config->{'make'} || ''
1112 0 0 $CPAN::Config->{'make_arg'} || ''
1174 0 0 $ENV{$_} || ''
1180 0 0 $CPAN::Config->{'proxy_user'} || $CPAN::LWP::UserAgent::USER || ''
1338 0 0 $CPAN::Config->{'urllist'} ||= []
1384 0 0 $err ||= 'Could not locate local::lib in the CPAN index'
1563 0 0 $CPAN::Config->{$progname} || $Config::Config{$progname} || ''
1875 0 0 $path ||= [split(/$CPAN::FirstTime::Config{'path_sep'}/, $ENV{'PATH'}, 0)]
1890 0 0 $default ||= ''
1957 0 0 $pos ||= 0
2113 0 0 $INC{'CPAN/MyConfig.pm'} || $INC{'CPAN/Config.pm'} || 'configuration file'
2148 0 0 $CPAN::Config->{$_} || ''
2154 0 0 $CPAN::Config->{$_} || ''

or 3 conditions

line l !l&&r !l&&!r condition
890 0 0 0 $matcher or _can_write_to_libdirs()
0 0 0 $matcher or _can_write_to_libdirs() or _using_installbase()
0 0 0 $matcher or _can_write_to_libdirs() or _using_installbase() or _using_sudo()
900 0 0 0 not $matcher or "\n build_dir\n build_dir_reuse\n cpan_home\n keep_source_where\n prefs_dir\n " =~ /$matcher/
967 0 0 0 not $matcher or 'test_report' =~ /$matcher/
989 0 0 0 not $matcher or 'yaml_module' =~ /$matcher/
993 0 0 0 $CPAN::FirstTime::auto_config or $CPAN::META->has_inst($CPAN::Config->{'yaml_module'})
1011 0 0 0 $matcher or $CPAN::FirstTime::auto_config
1038 0 0 0 $path ||= $ENV{'SHELL'}
1039 0 0 0 $path ||= $ENV{'COMSPEC'}
1082 0 0 0 not $matcher or 'makepl_arg make_arg' =~ /$matcher/
1169 0 0 0 not $matcher or "@proxy_vars @proxy_user_vars" =~ /$matcher/
1177 0 0 0 $CPAN::Config->{'ftp_proxy'} or $CPAN::Config->{'http_proxy'}
1249 0 0 0 $FG || $BG
1283 0 0 0 not $matcher or 'histfile histsize' =~ /$matcher/
1303 0 0 0 not $matcher or 'show_unparsable_versions' =~ /$matcher/
0 0 0 not $matcher or 'show_unparsable_versions' =~ /$matcher/ or 'show_zero_versions' =~ /$matcher/
1340 0 0 0 not $matcher or 'urllist' =~ /$matcher/
1383 0 0 0 not $dist or my $err = $@
1422 0 0 0 $CPAN::Config->{'shell'} || $ENV{'SHELL'}
1496 0 0 0 $local_lib_home ||= 'File::Spec'->rel2abs(do { if ($CPAN::META->has_usable('File::HomeDir') and 'File::HomeDir'->VERSION >= 0.65) { 'File::HomeDir'->my_home; } elsif (defined $ENV{'HOME'}) { $ENV{'HOME'}; } else { '~' unless (getpwuid $<)[7]; } })
1544 0 0 0 not $matcher or join($", @external_progs) =~ /$matcher/
1581 0 0 0 $path ||= find_exe($progcall, $PATH)
1592 0 0 0 $disabling || !_check_found($path)
1658 0 0 0 not $matcher or 'cpan_home' =~ /$matcher/
1660 0 0 0 $CPAN::Config->{'cpan_home'} || CPAN::HandleConfig::cpan_home()
1680 0 0 0 !$last_ans || $ans ne $last_ans
1721 0 0 0 $CPAN::Config->{$item} || $dflt
1723 0 0 0 !$m || $item =~ /$m/
1742 0 0 0 !$m || $item =~ /$m/
1756 0 0 0 $CPAN::Config->{$item} || $dflt
1759 0 0 0 !$m || $item =~ /$m/
1914 0 0 0 /\D/ || $_ < 1 || $_ > $i
2088 0 0 0 $ans or not %seen