Condition Coverage

blib/lib/Moose/Meta/Class.pm
Criterion Covered Total %
condition 61 75 81.3


and 3 conditions

line !l l&&!r l&&r condition
110 7 0 1 &blessed($_[0]) and $_[0]->isa("Moose::Meta::Role")
121 2723 0 7 $params and %$params
182 2 1 1100 &blessed($role) and $role->isa("Moose::Meta::Role")
198 1 0 1099 &blessed($application) and $application->isa("Moose::Meta::Role::Application::ToClass")
244 0 278 668 $meta and $meta->can("roles")
264 0 8272 2193 $meta and $meta->can("roles")
289 8203 4583 51 $attr->can("has_trigger") and $attr->has_trigger
328 0 2 760 $args eq "\@_" and !$buildargs || $buildargs->body == \&Moose::Object::BUILDARGS
377 30 1524 938 $attr->can("is_required") and $attr->is_required
427 38 1185 1279 $attr->can("is_lazy") and $attr->is_lazy
469 38 2451 13 $attr->can("has_trigger") and $attr->has_trigger
512 38 2451 13 $_->can('has_trigger') && $_->has_trigger
534 76 2412 14 defined $_ && $_->has_coercion
571 15 3150 2 $meta and $meta->isa("Moose::Meta::Role")
581 1704 0 672 &blessed($_[0]) && $_[0]->isa('Class::MOP::Attribute')
631 0 1 1 &blessed($method->{'code'}) and not $method->{'code'}->isa("Moose::Meta::Method::Overridden")
711 1704 0 0 scalar @args == 1 and ref $args[0] eq "HASH"

or 2 conditions

line l !l condition
104 2721 0 $options{'superclasses'} || []
112 2716 5 $options{'roles'} || []
123 0 1 delete $params->{'-alias'} || delete $params->{'alias'} || {}
126 0 4 delete $params->{'-excludes'} || delete $params->{'excludes'} || []
713 1700 4 $name || ''
798 925 760 $throw_args || ''

or 3 conditions

line l !l&&r !l&&!r condition
63 76 2698 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 577 2 0 ref $options{'roles'} eq "ARRAY" or throw_exception("RolesInCreateTakesAnArrayRef", "params", \%options)
328 5 755 2 !$buildargs || $buildargs->body == \&Moose::Object::BUILDARGS
378 12 1 925 $attr->has_default or $attr->has_builder