Branch Coverage

blib/lib/Test2/Compare/Array.pm
Criterion Covered Total %
branch 45 48 93.7


line true false branch
17 430 648 if (defined(my $ref = $self->{'inref'})) { }
18 1 429 if $self->{'items'}
19 1 428 if $self->{'order'}
20 1 427 unless &reftype($ref) eq "ARRAY"
31 1 647 if grep {not &looks_like_number($_);} keys %{$$self{"items"};}
35 1 646 if grep {not &looks_like_number($_) || ref $_ && &reftype($_) eq 'CODE';} @{$$self{"order"};}
51 3 1071 unless $params{'exists'}
53 2 1069 unless defined $got
54 5 1064 unless ref $got
55 8 1056 unless &reftype($got) eq "ARRAY"
61 3 1 unless defined $self->{'meta'}
71 17 1686 if ref $idx
85 1 1362 if $top and $idx and $idx <= $top
88 1667 616 defined $top ? :
2283 26 unless defined $idx
98 2 17 unless @_ == 1 and $code and ref $code and &reftype($code) eq "CODE"
121 2 1060 if defined $meta
132 18 3447 if (ref $idx)
137 0 3447 if $state > $idx + 1
147 0 4 $overflow ? :
159 0 3447 unless $state == $idx + 1
164 12 3435 $overflow ? :
188 7 1 if ($self->{'ending'})
196 1 6 $self->{'ending'} eq 'implicit' ? :