blib/lib/Test2/Compare/Array.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 29 | 30 | 96.6 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
85 | 947 | 1356 | 7 | $top and $idx |
2303 | 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 | 1037 | 28 | 6 | @list and @$for_each || $self->{'ending'} |
line | l | !l | condition |
---|---|---|---|
29 | 4 | 644 | $self->{'items'} ||= {} |
33 | 2 | 645 | $self->{'order'} ||= [(sort {$a <=> $b;} keys %{$$self{"items"};})] |
38 | 0 | 1074 | $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'} |