Branch Coverage

blib/lib/MooX/XSConstructor.pm
Criterion Covered Total %
branch 12 22 54.5


line true false branch
21 0 1 if $ba != \&Moo::Object::BUILDARGS
22 0 1 if $klass->can('FOREIGNBUILDARGS')
24 0 1 unless $maybe_spec
28 0 2 if ($spec{$attr}{'isa'} and not &blessed($spec{$attr}{'isa'}))
31 0 2 if ($spec{$attr}{'isa'} and not $spec{$attr}{'isa'}->can('compiled_check'))
34 0 2 if ($spec{$attr}{'default'} and not $spec{$attr}{'lazy'})
37 0 2 if ($spec{$attr}{'builder'} and not $spec{$attr}{'lazy'})
40 0 2 if (my(@unsafe) = grep({not $_ =~ /$safe_spec/;} keys %{$spec{$attr};}))
54 0 1 unless $self->is_suitable_class($klass, \%spec)
59 1 1 if $spec{$attr}{'required'}
60 0 2 $spec{$attr}{'isa'} ? :