Branch Coverage

lib/List/Objects/WithUtils/Role/Array.pm
Criterion Covered Total %
branch 47 48 97.9


line true false branch
32 56 18 &Scalar::Util::blessed($_[0]) ? :
43 6 21 ref $_[0] eq 'ARRAY' || &Scalar::Util::blessed($_[0]) && $_[0]->can('does') && $_[0]->does('List::Objects::WithUtils::Role::Array') ? :
49 7 6 $depth > 0 ? :
13 31 ref $_ eq 'ARRAY' || &Scalar::Util::blessed($_) && $_->can('does') && $_->does('List::Objects::WithUtils::Role::Array') ? :
70 1 19 unless &Scalar::Util::blessed($type)
75 9 2 $type->has_coercion ? :
8 0 $type->assert_valid($type->has_coercion ? $coerced = $type->coerce($_) : $_) ? :
8 11 $type->check($_) ? :
94 62 408 if (my $blessed = &Scalar::Util::blessed($_[0]))
134 2 3 scalar @{$_[0];} ? :
152 2 1 wantarray ? :
161 2 1 wantarray ? :
187 5 5 if &$sub(local $_ = $$self[$i])
201 2 2 defined $_[1] ? :
226 1 6 if (defined $_[1])
253 4 9 unless (defined $_[1])
270 7 3 if $max_idx < $#$_
280 1 2 if ($_[2]) { }
293 9 3 defined $_ ? :
300 6 4 &$code($_) ? :
310 1 7 unless defined $size
311 1 7 if $size < 1
316 8 8 if (defined $type)
390 6 1 defined $_[1] ? :