Condition Coverage

lib/Ruby/Collections/Array.pm
Criterion Covered Total %
condition 51 99 51.5


and 3 conditions

line !l l&&!r l&&r condition
90 0 0 5 not $new_ary->include($item) and $self->include($item)
0 3 2 not $new_ary->include($item) and $self->include($item) and ra($other)->include($item)
409 0 1 0 defined $n_or_block and not $block_or_n
463 0 0 20 $index >= 0 and $index < scalar @{$self;}
0 0 0 $index <= -1 and $index >= -scalar(@{$self;})
1020 1 0 2 $i < $n and $i < scalar @{$self;}
1074 2 0 0 defined $n and $n > 0
2 0 0 defined $n and $n > 0 and reftype $item eq 'ARRAY'
0 0 2 not defined $n and reftype $item eq 'ARRAY'
1098 8 6 0 defined $n and $n > 0
14 0 0 defined $n and $n > 0 and reftype $item eq 'ARRAY'
6 8 0 not defined $n and reftype $item eq 'ARRAY'
1124 2 0 8 defined $n and $n > 0
2 3 5 defined $n and $n > 0 and reftype $item eq 'ARRAY'
3 0 2 not defined $n and reftype $item eq 'ARRAY'
1334 0 1 2 $i >= 0 and $i > scalar(@{$self;}) - 1 - $n
1680 1 0 2 $i < $n and scalar @{$self;} != 0
1904 0 0 2 $i != 0 and $$loop_counter[$i - 1] != $end
1997 0 0 1 $i != 0 and $$loop_counter[$i - 1] != $end
2172 1 0 4 $i < $n and scalar @index_ary != 0
2245 1 0 3 $i < $n and scalar @{$self;} != 0
2368 0 1 2 $i < scalar @{$self;} and $length > 0
2429 0 0 2 defined $group and $group->has_any
2453 31 0 32 looks_like_number(p_obj($a)) and looks_like_number(p_obj($b))
2483 0 0 11 looks_like_number(p_obj($a)) and looks_like_number(p_obj($b))
2512 0 0 25 looks_like_number(p_obj(@{$a;}[0])) and looks_like_number(p_obj(@{$b;}[0]))
2541 0 0 7 looks_like_number(p_obj(@{$a;}[0])) and looks_like_number(p_obj(@{$b;}[0]))
2570 1 0 2 $i < $n and $i < scalar @{$self;}

or 3 conditions

line l !l&&r !l&&!r condition
532 5 1 1 not &$block($item) or $cut_point
642 0 1 2 not defined $n or $n <= 0
789 2 0 2 $index >= scalar @{$self;} or $index < -scalar(@{$self;})
2337 0 0 1 $index < -scalar(@{$self;}) or $index >= scalar @{$self;}
2362 0 0 1 $index < -scalar(@{$self;}) or $index >= scalar @{$self;}