blib/lib/Test2/Compare/Array.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 29 | 30 | 96.6 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
85 | 963 | 1360 | 7 | $top and $idx |
2323 | 6 | 1 | $top and $idx and $idx <= $top | |
98 | 2 | 1 | 19 | @_ == 1 and $code |
3 | 1 | 18 | @_ == 1 and $code and ref $code | |
2 | 1 | 17 | @_ == 1 and $code and ref $code and &reftype($code) eq "CODE" | |
173 | 1053 | 28 | 6 | @list and @$for_each || $self->{'ending'} |
line | l | !l | condition |
---|---|---|---|
29 | 4 | 656 | $self->{'items'} ||= {} |
33 | 2 | 657 | $self->{'order'} ||= [(sort {$a <=> $b;} keys %{$$self{"items"};})] |
38 | 0 | 1090 | $self->{'for_each'} ||= [] |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
35 | 5 | 1 | 1 | &looks_like_number($_) || ref $_ && &reftype($_) eq 'CODE' |
173 | 2 | 6 | 26 | @$for_each || $self->{'ending'} |