Branch Coverage

blib/lib/Class/MakeMethods/Standard/Array.pm
Criterion Covered Total %
branch 31 50 62.0


line true false branch
96 2 6 unless (scalar %{$class . '::FIELDS';})
101 0 0 if (scalar %{$superclass . '::FIELDS';}) { }
110 8 0 unless $$field_hash{$name}
171 0 2 ref $callee ? :
232 2 2 if (scalar @_) { }
341 2 4 if (scalar @_ == 0) { }
0 4 elsif (scalar @_ == 1 and ref $_[0] eq 'ARRAY') { }
342 1 1 if ($init and not defined $$self[$index])
346 0 2 wantarray ? :
0 2 !$$self[$index] ? :
351 0 0 wantarray ? :
0 0 !$$self[$index] ? :
433 2 4 if (scalar @_ == 0) { }
2 2 elsif (scalar @_ == 1) { }
0 2 elsif (scalar(@_) % 2) { }
434 1 1 if ($init and not defined $$self[$index])
438 0 2 wantarray ? :
0 2 !$$self[$index] ? :
441 0 2 if (ref $_[0] eq 'HASH') { }
0 2 elsif (ref $_[0] eq 'ARRAY') { }
456 0 2 wantarray ? :
517 0 2 if ($init and not $class)
523 1 4 if (scalar @_) { }
525 0 1 if ($class and not UNIVERSAL::isa($value, $class))
530 1 3 if ($init and not defined $$self[$index]) { }