Branch Coverage

blib/lib/Moo.pm
Criterion Covered Total %
branch 52 52 100.0


line true false branch
40 6 774 if ($INC{'Role/Tiny.pm'} and "Role::Tiny"->is_role($target))
58 4 770 if $makers->{'is_class'}
73 766 4 unless @{"${target}::ISA";}
75 68 702 if ($INC{'Moo/HandleMoose.pm'} and not $Moo::sification::disabled)
109 4 522 ref $name_proto eq 'ARRAY' ? :
110 4 522 if (@_ % 2 != 0)
118 4 520 @name_proto > 1 ? :
149 4 156 if ($INC{'Role/Tiny.pm'} and "Role::Tiny"->is_role($superclass))
154 6 138 if (my $old = delete $MAKERS{$target}{'constructor'}) { }
44 94 elsif (not $target->isa('Moo::Object')) { }
163 4 138 if "Mouse::Util"->can("find_meta")
170 116 600 if ($INC{'Moo/HandleMoose.pm'} and not $Moo::sification::disabled)
177 12 1360 unless $MAKERS{$target}
181 76 606 if (my $m = do {
184 672 10 if (my($parent_new) = grep(defined(&{$_ . '::new';}), @isa)) { }
185 78 594 if $MAKERS{$parent_new}
203 22 962 unless $MAKERS{$target}
231 658 4 if (my($parent_new) = grep(defined(&{$_ . "::new";}), @isa))
232 536 122 if ($parent_new eq 'Moo::Object') { }
80 42 elsif (my $makers = $MAKERS{$parent_new}) { }
14 28 elsif ($parent_new->can('BUILDALL')) { }
237 78 2 if $con
242 12 2 $target->can('BUILDARGS') ? :
252 4 20 $target->can('FOREIGNBUILDARGS') ? :
262 78 584 $con ? :
78 574 $con ? :