Branch Coverage

blib/lib/List/Object.pm
Criterion Covered Total %
branch 44 56 78.5


line true false branch
63 5 1 defined $args{'type'} ? :
64 0 6 defined $args{'allow_undef'} ? :
66 3 3 if (defined $args{'list'}) { }
81 1 91 if defined $List::Object::Loose and $List::Object::Loose == 1
92 2 109 unless ($$this{'_allow_undef'} or defined $c)
100 109 1 if (defined $c)
103 27 82 if (exists $rev_types{$ref_type}) { }
105 1 26 unless (ref $c eq $types{$$this{'_type'}})
114 2 80 unless ($c->isa($$this{'_type'}))
124 2 89 if $undef and not $$this{'_allow_undef'}
125 3 86 unless $valid
151 1 9 if $$this{'_index'} >= @{$$this{'_array'};} - 1
212 3 0 if @_
213 3 0 if @_
214 1 2 if @_
225 1 2 if ($$this{'_type'} eq '') { }
1 1 elsif ($$this{'_type'} eq '$') { }
227 1 0 if @_
232 1 0 if @_
263 0 5 if $index >= $this->count
274 0 1 if $index >= $this->count
357 1 1 if ($$this{'_type'} eq '') { }
1 0 elsif ($$this{'_type'} eq '$') { }
387 22 69 if ($av =~ /^[\d\.]+$/ and $bv =~ /^[\d\.]+$/) { }
397 3 1 if (not defined $types{$type}) { }
1 0 elsif ($type eq '%') { }
0 0 elsif ($type eq '@') { }
400 0 3 unless $type->can($sort_by)