Condition Coverage

blib/lib/Moo/Role.pm
Criterion Covered Total %
condition 86 105 81.9


and 3 conditions

line !l l&&!r l&&r condition
51 186 2 4 $Moo::MAKERS{$target} and $Moo::MAKERS{$target}{'is_class'}
139 92 2 62 $INC{'Moo/HandleMoose.pm'} and not $Moo::sification::disabled
166 334 30 62 $INC{'Moose.pm'} and $meta = Class::MOP::class_of($role)
364 42 20 $INC{'Moose.pm'} and $meta = Class::MOP::class_of($role) and ref $meta ne "Moo::HandleMoose::FakeMetaClass"
72 0 20 $INC{'Moose.pm'} and $meta = Class::MOP::class_of($role) and ref $meta ne "Moo::HandleMoose::FakeMetaClass" and $meta->isa("Moose::Meta::Role")
344 406 20 not $self->SUPER::is_role($role) and ($INC{'Moose.pm'} and $meta = Class::MOP::class_of($role) and ref $meta ne "Moo::HandleMoose::FakeMetaClass" and $meta->isa("Moose::Meta::Role"))
720 22 8 "Mouse::Util"->can("find_meta") and $meta = Mouse::Util::find_meta($role)
742 0 8 "Mouse::Util"->can("find_meta") and $meta = Mouse::Util::find_meta($role) and $meta->isa("Mouse::Meta::Role")
181 8 18 8 $is_mouse && $_ eq 'meta'
254 0 188 32 $INFO{$role} and $INFO{$role}{'inhaled_from_moose'}
4 12 172 $INC{'Moo.pm'} and $m = "Moo"->_accessor_maker_for($target)
16 162 10 $INC{'Moo.pm'} and $m = "Moo"->_accessor_maker_for($target) and ref $m ne "Method::Generate::Accessor"
264 0 0 0 $INFO{$role} and $INFO{$role}{'inhaled_from_moose'}
303 34 2 4 $INC{'Moo/HandleMoose.pm'} and not $Moo::sification::disabled
310 16 56 40 $pack ne "Moo::Role" and $pack ne "Role::Tiny"
72 0 40 $pack ne "Moo::Role" and $pack ne "Role::Tiny" and not $pack->isa($me)
328 0 10 12 $INC{'Moo.pm'} and @attrs
10 0 12 $INC{'Moo.pm'} and @attrs and $con_gen = "Moo"->_constructor_maker_for($class)
10 0 12 $INC{'Moo.pm'} and @attrs and $con_gen = "Moo"->_constructor_maker_for($class) and $m = "Moo"->_accessor_maker_for($class)
409 4 0 6 $INC{'Moose.pm'} and $meta = Class::MOP::class_of($proto)
4 2 4 $INC{'Moose.pm'} and $meta = Class::MOP::class_of($proto) and ref $meta ne "Moo::HandleMoose::FakeMetaClass"
2 0 4 $INC{'Moose.pm'} and $meta = Class::MOP::class_of($proto) and ref $meta ne "Moo::HandleMoose::FakeMetaClass" and $meta->can("does_role")
421 0 88 134 $INFO{$role} && $INFO{$role}{'attributes'}
422 88 4 130 $attr_info and @$attr_info
424 4 10 116 $INC{'Moo.pm'} && 'Moo'->_constructor_maker_for($to)

or 2 conditions

line l !l condition
94 16 82 $INFO{$target}{'attributes'} ||= []
102 4 16 $INFO{$target}{'modifiers'} ||= []
108 4 20 $INFO{$target}{'requires'} ||= []
226 2 2 $tc->can('coercion') || sub {
239 60 24 $meta->can("get_${type}_method_modifiers_map") || sub {
436 4 6 $info->{'attributes'} ||= []

or 3 conditions

line l !l&&r !l&&!r condition
60 16 82 0 $INFO{$target}{'accessor_maker'} ||= do {
128 0 2 0 ref $_[0] || $_[0]
166 20 90 660 not $self->SUPER::is_role($role) and ($INC{'Moose.pm'} and $meta = Class::MOP::class_of($role) and ref $meta ne "Moo::HandleMoose::FakeMetaClass" and $meta->isa("Moose::Meta::Role")) or "Mouse::Util"->can("find_meta") and $meta = Mouse::Util::find_meta($role) and $meta->isa("Mouse::Meta::Role")
254 32 14 174 $INFO{$role} and $INFO{$role}{'inhaled_from_moose'} or $INC{'Moo.pm'} and $m = "Moo"->_accessor_maker_for($target) and ref $m ne "Method::Generate::Accessor"
271 36 6 0 $Moo::MAKERS{$target}{'accessor'} ||= do {
314 40 0 0 $file || (caller)[1]