Condition Coverage

blib/lib/CPAN/Reporter/Config.pm
Criterion Covered Total %
condition 24 37 64.8


and 3 conditions

line !l l&&!r l&&r condition
353 1368 0 3 defined $ENV{'PERL_CPAN_REPORTER_DIR'} and length $ENV{'PERL_CPAN_REPORTER_DIR'}
363 0 0 0 -d $alt_dir and not -d $conf_dir
374 496 0 2 defined $ENV{'PERL_CPAN_REPORTER_CONFIG'} and length $ENV{'PERL_CPAN_REPORTER_CONFIG'}
396 617 954 5 $spec{$option}{'validate'} and not $spec{$option}{'validate'}->($option, $val)
466 422 0 0 $^O eq "MSWin32" and $id_file =~ m[^~/(.*)]
647 1 1 20 defined $option and length $option
2 2 18 defined $option and length $option and $option =~ /^\d/
3 0 18 defined $option and length $option and $option =~ /^\d/ and $option >= 0

or 2 conditions

line l !l condition
131 0 0 $existing_options->{$k} || ''
512 972 1 $option ||= "no"

or 3 conditions

line l !l&&r !l&&!r condition
111 4 3 1 $existing_options->{$k} || $option_data->{'default'}
117 2 6 0 not $option_data->{'validate'} or $option_data->{'validate'}->($k, $answer, $config->{'_'})
612 301 0 0 -r $id_file || -r 'File::Spec'->catdir(_get_config_dir(), $id_file)