Branch Coverage

lib/File/CountLines.pm
Criterion Covered Total %
branch 17 22 77.2


line true false branch
25 2 19 unless defined $filename
29 9 10 unless (defined $sep)
30 5 4 exists $options{'style'} ? :
32 0 9 unless defined $sep
34 6 13 if (length $sep > 1) { }
52 1 12 unless open my $handle, '<:raw', $filename
64 0 12 unless defined $sysread_status
66 0 12 unless close $handle
73 1 5 unless open my $handle, '<:raw', $filename
88 0 5 unless defined $sysread_status
90 0 5 unless close $handle