Branch Coverage

blib/lib/Object/PadX/Enum.pm
Criterion Covered Total %
branch 40 52 76.9


line true false branch
202 13 1 if keys %{"${pkg}::";}
205 1 0 unless eval { do { require $file; 1 } }
215 0 14 unless defined $raw and length $raw
219 0 14 if defined $extra
229 1 10 if exists $state->{'isa'}
233 2 7 if defined $ver
244 0 4 if defined $ver
254 0 28 if exists $Pending{$name}
261 3 16 if (my $msg = $ENUM_ATTR_REJECTED{$attr})
265 1 15 unless my $handler = $ENUM_ATTR_HANDLERS{$attr}
273 7 14 if exists $state->{'isa'}
293 0 33 unless my $entry = $Pending{$class}
296 1 32 if $entry->{'seen'}{$name}
299 2 30 if $RESERVED_ITEM_NAMES{$name}
312 0 18 unless my $entry = delete $Pending{$class}
325 0 29 if $@
351 0 6 unless defined $idx
352 2 4 unless $idx >= 0 and $idx < @ordered
358 0 6 unless defined $want
360 4 9 if $pair->[0] eq $want
373 18 26 if $ancestor eq $class
374 22 4 unless my $ancestor_items = $EnumItems{$ancestor}
376 1 7 if $own_names{$aname}
377 0 7 if $shadowed{$aname}
397 16 2 if (@item_names)
404 0 5 if $invocant ne $class