Condition Coverage

blib/lib/CPAN/Testers/Common/Client/Config.pm
Criterion Covered Total %
condition 12 55 21.8


and 3 conditions

line !l l&&!r l&&r condition
59 19 0 2 defined $ENV{'PERL_CPAN_REPORTER_DIR'} and length $ENV{'PERL_CPAN_REPORTER_DIR'}
69 0 0 0 -d $alt_dir and not -d $conf_dir
76 1 0 0 defined $ENV{'PERL_CPAN_REPORTER_CONFIG'} and length $ENV{'PERL_CPAN_REPORTER_CONFIG'}
332 0 0 1 $prompt and ref $prompt
0 0 1 $prompt and ref $prompt and ref $prompt eq 'CODE'
341 0 0 1 $warn and ref $warn
0 0 1 $warn and ref $warn and ref $warn eq 'CODE'
350 0 0 1 $print and ref $print
0 0 1 $print and ref $print and ref $print eq 'CODE'
448 0 4 0 $spec{$option}{'validate'} and not $spec{$option}{'validate'}->($self, $option, $val)
478 3 0 0 $^O eq 'MSWin32' and $id_file =~ m[^~/(.*)]
739 0 0 0 defined $option and length $option
0 0 0 defined $option and length $option and $option =~ /^\d/
0 0 0 defined $option and length $option and $option =~ /^\d/ and $option >= 0

or 2 conditions

line l !l condition
170 0 0 $existing_options->{$k} || ''
577 2 0 $option ||= 'no'

or 3 conditions

line l !l&&r !l&&!r condition
150 0 0 0 $existing_options->{$k} || $option_data->{'default'}
158 0 0 0 not $option_data->{'validate'} or $option_data->{'validate'}->($self, $k, $answer, $config)
435 0 0 0 $dispatch->{$grade} || $dispatch->{'default'}