Condition Coverage

blib/lib/File/BetweenTree.pm
Criterion Covered Total %
condition 72 128 56.2


and 3 conditions

line !l l&&!r l&&r condition
44 1 4 0 not $mode and $my_min =~ /[^\-\.\d]/ || $my_max =~ /[^\-\.\d]/
50 1 3 1 not $mode and $my_min > $my_max
3 1 0 $mode and ($my_min cmp $my_max) eq 1
74 1 0 2 ($my_max cmp $str) eq -1 and $_max > $_pos
0 0 1 ($my_max cmp $str) eq 1 and $_top < $_pos
81 17 0 1 $my_max - $str < 0 and $_max > $_pos
0 12 5 $my_max - $str > 0 and $_top < $_pos
89 18 1 2 $mode and ($my_min cmp $str) < 1
1 10 8 not $mode and $my_min <= $str
111 14 0 1 $mode and ($my_max cmp $str) >= 0
0 5 9 not $mode and $my_max >= $str
147 0 0 1 $count eq 1 and $_max ne $size
154 294 0 0 not $mode and $_s =~ /[^\-\.\d]/
155 289 0 5 !$mode && $my_min <= $_s && $_s <= $my_max || $mode && ($my_min cmp $_s) < 1 && ($_s cmp $my_max) < 1 and --$result_offset < 0
289 0 5 !$mode && $my_min <= $_s && $_s <= $my_max || $mode && ($my_min cmp $_s) < 1 && ($_s cmp $my_max) < 1 and --$result_offset < 0 and --$result_limit >= 0
161 294 0 0 not $spare || $mode and $my_min >= $_s
0 0 294 not $spare and $mode
0 294 0 not $spare and $mode and ($my_min cmp $_s) >= 0
171 1 0 0 $read_pos eq 0 and !$mode && $my_min <= $_s && $_s <= $my_max || $mode && ($my_min cmp $_s) < 1 && ($_s cmp $my_max) < 1
195 1 1 3 $count eq 1 and $_min ne 0
205 0 783 0 not $mode and $_s =~ /[^\-\.\d]/
206 779 0 4 $mode && ($my_min cmp $_s) < 1 && ($_s cmp $my_max) < 1 || !$mode && $my_min <= $_s && $_s <= $my_max and --$result_offset < 0
10 0 4 $mode && ($my_min cmp $_s) < 1 && ($_s cmp $my_max) < 1 || !$mode && $my_min <= $_s && $_s <= $my_max and --$result_offset < 0 and --$result_limit >= 0
212 783 0 0 $mode and ($my_min cmp $_s) >= 0
0 12 771 not $mode and $my_min >= $_s

or 2 conditions

line l !l condition
37 5 0 $result_limit ||= 1000
38 0 5 $result_offset ||= 0
39 1 4 $order_by ||= 'ASC'
40 0 5 $col_sep ||= ','
41 1 4 $col_num ||= 0
42 1 4 $mode ||= 0
169 1 0 (split(/$col_sep/, $t, 0))[$col_num] || ''

or 3 conditions

line l !l&&r !l&&!r condition
17 0 0 5 $recsep || $^O =~ /win32/i
44 0 0 4 $my_min =~ /[^\-\.\d]/ || $my_max =~ /[^\-\.\d]/
89 2 0 19 $mode and ($my_min cmp $str) < 1 or not $mode and $my_min <= $str
111 1 0 14 $mode and ($my_max cmp $str) >= 0 or not $mode and $my_max >= $str
155 0 0 294 !$mode && $my_min <= $_s && $_s <= $my_max || $mode && ($my_min cmp $_s) < 1 && ($_s cmp $my_max) < 1
161 0 294 0 $spare || $mode
0 0 294 not $spare || $mode and $my_min >= $_s or not $spare and $mode and ($my_min cmp $_s) >= 0
171 0 0 0 !$mode && $my_min <= $_s && $_s <= $my_max || $mode && ($my_min cmp $_s) < 1 && ($_s cmp $my_max) < 1
175 0 1 0 $read_pos <= $_min or $result_limit <= 0
206 0 0 783 $mode && ($my_min cmp $_s) < 1 && ($_s cmp $my_max) < 1 || !$mode && $my_min <= $_s && $_s <= $my_max
212 0 0 783 $mode and ($my_min cmp $_s) >= 0 or not $mode and $my_min >= $_s
222 2 0 3 $read_pos >= $_max or $read_pos > $size
2 2 1 $read_pos >= $_max or $read_pos > $size or $result_limit <= 0