Branch Coverage

blib/lib/Devel/Required.pm
Criterion Covered Total %
branch 33 44 75.0


line true false branch
39 5 9 if ($key eq 'VERSION_FROM') { }
4 5 elsif ($key eq 'PREREQ_PM') { }
62 4 1 if $modules
67 1 4 @TEXT ? :
68 5 0 if $version
71 1 4 if $INSTALLATION
76 4 0 $pod ? :
1 4 @POD ? :
77 5 0 if $version
84 1 4 if $INSTALLATION
111 1 3 if ($type eq 'text') { }
1 2 elsif ($type eq 'pod') { }
1 1 elsif ($type eq 'maint_blead') { }
112 0 1 ref $value ? :
117 0 1 ref $value ? :
186 22 0 if (my $contents = $_ = _slurp($filename))
189 22 0 if (s/$before(?:.*?)$after/$before$text$after/s) { }
192 6 16 if ($_ eq $contents) { }
16 0 elsif (open OUT, ">$filename") { }
198 0 16 unless close OUT
200 0 16 unless -s $filename == length $_
232 27 0 if (open IN, $filename) { }