Branch Coverage

blib/lib/App/linerange.pm
Criterion Covered Total %
branch 45 50 90.0


line true false branch
106 1 28 unless $spec2 =~ /\A\s*([+-]?[0-9]+)\s*(?:(\.\.|-|\+)\s*([+-]?[0-9]+)\s*)?\z/
111 6 22 if (defined $2 and $2 eq '+')
113 3 3 if ($ln1 > 0) { }
114 0 3 if $ln2 < 1
116 0 3 if $ln2 > -1
120 2 26 if ($ln1 == 0 or $ln2 == 0) { }
11 15 elsif ($ln1 > 0 and $ln2 > 0) { }
8 7 elsif ($ln1 < 0 and $ln2 < 0) { }
124 1 10 $ln1 > $ln2 ? :
125 11 0 unless ($exit_after_linum < 0)
126 11 0 if $exit_after_linum < $ln1
127 5 6 if $exit_after_linum < $ln2
130 6 2 if $bufsize < -$ln1
131 2 6 if $bufsize < -$ln2
132 2 6 $ln1 > $ln2 ? :
136 6 1 if ($ln1 > 0) { }
137 5 1 if $bufsize < -$ln2
140 1 0 if $bufsize < -$ln1
150 8 213 if $exit_after_linum >= 0 and $linenum > $exit_after_linum
151 192 21 if ($bufsize)
153 147 45 if (@buffer > $bufsize)
157 67 22 unless $range->[0] > 0 and $linenum >= $range->[0] and $range->[1] < 0 || $range->[1] > 0 && $linenum <= $range->[1]
172 14 16 $range->[0] > 0 ? :
176 10 20 if $bufpos1 > $bufpos2
177 15 15 if ($stage == 0) { }