Condition Coverage

blib/lib/Moose/Meta/Class.pm
Criterion Covered Total %
condition 60 75 80.0


and 3 conditions

line !l l&&!r l&&r condition
110 5 0 1 &blessed($_[0]) and $_[0]->isa("Moose::Meta::Role")
121 2721 0 5 $params and %$params
182 2 1 1091 &blessed($role) and $role->isa("Moose::Meta::Role")
198 1 0 1090 &blessed($application) and $application->isa("Moose::Meta::Role::Application::ToClass")
244 0 278 665 $meta and $meta->can("roles")
264 0 8233 2178 $meta and $meta->can("roles")
289 8116 4582 51 $attr->can("has_trigger") and $attr->has_trigger
328 0 2 743 $args eq "\@_" and !$buildargs || $buildargs->body == \&Moose::Object::BUILDARGS
377 30 1516 933 $attr->can("is_required") and $attr->is_required
427 38 1180 1271 $attr->can("is_lazy") and $attr->is_lazy
469 38 2438 13 $attr->can("has_trigger") and $attr->has_trigger
512 38 2438 13 $_->can('has_trigger') && $_->has_trigger
534 76 2399 14 defined $_ && $_->has_coercion
571 14 3088 2 $meta and $meta->isa("Moose::Meta::Role")
581 1683 0 671 &blessed($_[0]) && $_[0]->isa('Class::MOP::Attribute')
631 0 1 1 &blessed($method->{'code'}) and not $method->{'code'}->isa("Moose::Meta::Method::Overridden")
711 1683 0 0 scalar @args == 1 and ref $args[0] eq "HASH"

or 2 conditions

line l !l condition
104 2717 0 $options{'superclasses'} || []
112 2712 5 $options{'roles'} || []
123 0 0 delete $params->{'-alias'} || delete $params->{'alias'} || {}
126 0 3 delete $params->{'-excludes'} || delete $params->{'excludes'} || []
713 1679 4 $name || ''
798 920 743 $throw_args || ''

or 3 conditions

line l !l&&r !l&&!r condition
63 75 2637 1 Class::MOP::get_metaclass_by_name($package) || $class->SUPER::initialize($package, 'attribute_metaclass', 'Moose::Meta::Attribute', 'method_metaclass', 'Moose::Meta::Method', 'instance_metaclass', 'Moose::Meta::Instance', %opts)
81 572 2 0 ref $options{'roles'} eq "ARRAY" or throw_exception("RolesInCreateTakesAnArrayRef", "params", \%options)
328 3 740 2 !$buildargs || $buildargs->body == \&Moose::Object::BUILDARGS
378 12 1 920 $attr->has_default or $attr->has_builder