Branch Coverage

blib/lib/MooseX/MungeHas.pm
Criterion Covered Total %
branch 33 70 47.1


line true false branch
19 5 0 if eval "require $backend; *eval_closure = \\&${backend}::eval_closure;"
22 0 5 unless exists &MooseX::MungeHas::eval_closure
33 0 4 unless my $orig = \&{"${caller}::has";}
37 1 3 @_ == 1 && ref $_[0] eq 'HASH' ? :
57 1 3 if ($INC{'Moo.pm'})
59 1 0 if $Moo::MAKERS{$package}
60 0 0 if $Moo::Role::INFO{$package}
63 3 0 if ($INC{'Moose.pm'})
66 3 0 if Moose::Util::find_meta($package)
69 0 0 if ($INC{'Mouse.pm'})
72 0 0 if Mouse::Util::find_meta($package)
76 0 0 unless eval { do { $meta = $package->meta } }
78 0 0 if ref $meta eq 'Moo::HandleMoose::FakeMetaClass'
79 0 0 if $meta->isa('Mouse::Meta::Module')
80 0 0 if $meta->isa('Moose::Meta::Class')
81 0 0 if $meta->isa('Moose::Meta::Role')
104 4 1 if (_detect_oo($caller) =~ /^Mo[ou]se$/)
113 5 20 if (delete $features{"is_$is"})
132 4 1 unless (_detect_oo($caller) eq 'Moo')
163 2 3 if (delete $features{'always_coerce'})
170 1 4 if (_detect_oo($caller) eq 'Moo')
182 0 5 if (delete $features{'no_isa'})
187 2 3 if (delete $features{'simple_isa'})
197 0 5 if keys %features
213 4 0 if ($t->has_parent)
219 0 0 if ($t->isa('Type::Tiny::Intersection'))
239 0 5 if _detect_oo($caller) eq 'Mouse'
245 2 8 @_ == 2 && &blessed($_[1]) && $_[1]->can('check') ? :
0 10 @_ == 2 && ref $_[1] eq 'HASH' ? :
5 10 @_ == 2 && ref $_[1] eq 'CODE' ? :
252 1 14 if (ref $attr eq 'ARRAY') { }
282 0 0 @_ == 2 && &blessed($_[1]) && $_[1]->can('check') ? :
0 0 @_ == 2 && ref $_[1] eq 'HASH' ? :
0 0 @_ == 2 && ref $_[1] eq 'CODE' ? :
289 0 0 if (ref $attr eq 'ARRAY') { }