Branch Coverage

blib/lib/CPAN/Testers/Common/Client.pm
Criterion Covered Total %
branch 60 84 71.4


line true false branch
28 0 2 unless $params{'distname'}
29 0 2 unless $params{'author'}
30 0 2 unless $params{'grade'}
46 1 1 exists $params{'via'} ? :
52 1 0 $ENV{'AUTOMATED_TESTING'} ? :
1 1 exists $params{'comments'} ? :
56 1 1 if exists $params{'command'}
58 1 1 if ($params{'prereqs'}) { }
0 1 elsif ($params{'build_dir'}) { }
67 3 3 if (exists $params{$key})
82 2 5 if $comment
88 2 3 if $via
94 2 3 if $author
104 2 5 if $distname
111 2 9 if $grade
117 1 3 if $command
130 0 1 unless $grade and $dist_name
146 0 1 unless $grade and $dist_name
310 0 34 unless defined $value
316 108 16 defined $_[0] ? :
348 3 5 unless $requires and ref $requires eq 'HASH' and keys %$requires > 0
362 4 8 unless $requires and ref $requires eq 'HASH'
368 6 12 if $name_length > $name_width
369 0 18 if $need_length > $need_width
370 3 15 if $have_length > $have_width
380 3 5 unless $requires and ref $requires eq 'HASH' and keys %$requires
393 7 11 $prereq_met{$section}{$module} ? :
436 8 36 if ($var =~ m[^/(.+)/$]) { }
439 22 0 if exists $ENV{$found}
443 4 32 if exists $ENV{$var}
459 0 2 if ($^O eq 'MSWin32' and eval 'require Win32')
474 0 0 if (-e $meta_path)
476 0 0 if $meta
480 0 0 if ($meta and $meta->{'meta-spec'}{'version'} < 2)
490 8 74 if length $term > $max
512 0 6 unless defined $prefix
541 0 6 unless open my $fh, '>', $prereq_input
549 0 6 if (length $error)
552 0 6 unless (length $prereq_result)
557 0 51 unless length $line
559 0 51 unless (defined $mod and defined $met and defined $have)
630 0 2 if (length $data{'test_log'} > 1000000)