Condition Coverage

blib/lib/Moo/Role.pm
Criterion Covered Total %
condition 80 96 83.3


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
319 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)
400 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')
412 0 88 134 $INFO{$role} && $INFO{$role}{'attributes'}
413 88 4 130 $attr_info and @$attr_info
415 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 {
427 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 {