Branch Coverage

blib/lib/Encode/Newlines.pm
Criterion Covered Total %
branch 13 18 72.2


line true false branch
14 0 1 $^O =~ /^MacOS/ ? :
0 1 $^O =~ /^(?:MSWin|cygwin|dos|os2)/ ? :
37 1 13 if ($AllowMixed) { }
13 0 elsif ($str =~ /((?:\015\012?|\012))/) { }
43 5 8 if ($eol eq "\r\n") { }
45 0 5 if $str =~ /\015(?!\012)|(?
50 5 3 $eol eq "\r" ? :
2 6 if index($str, $eol eq "\r" ? "\n" : "\r") >= 0
57 0 12 if $chk