Branch Coverage

blib/lib/File/LocalizeNewlines.pm
Criterion Covered Total %
branch 31 52 59.6


line true false branch
93 0 11 ref $_[0] ? :
100 5 6 if (_INSTANCE $args{'filter'}, 'File::Find::Rule')
106 3 8 if $args{'newline'}
109 0 11 if (_CAN($args{'verbose'}, 'print')) { }
0 11 elsif ($args{'verbose'}) { }
129 4 7 unless $$self{'Find'}
142 19 3 unless $_[0]->_self->{'newline'}
165 11 0 defined $_[0] && -f $_[0] ? :
4 11 defined $_[0] && ref $_[0] ? :
193 0 3 unless my $path = _DIRECTORY(shift())
221 3 0 defined $_[0] && -e $_[0] ? :
0 3 defined $_[0] && ref $_[0] ? :
226 1 2 -f $path || ref $_[0] ? :
233 0 2 unless my $path = _DIRECTORY(shift())
246 1 3 if $localized eq $content
247 0 3 unless File::Slurp::write_file($file, $localized)
257 1 0 defined $_[0] && -f $_[0] ? :
0 1 defined $_[0] && ref $_[0] ? :
266 0 1 if $content eq $localized
269 0 1 unless File::Slurp::write_file($file, $localized)
270 1 0 unless ref $file
277 4 0 unless defined $$self{'verbose'}
279 0 0 unless $message =~ /\n$/
280 0 0 if (_CAN($$self{'verbose'}, 'print')) { }
288 0 11 _INSTANCE($_[0], 'UNIVERSAL') && $_[0]->can($_[1]) ? :
292 5 0 defined $_[0] && -d $_[0] ? :