Condition Coverage

blib/lib/MooseX/AttributeHelpers/MethodProvider/Array.pm
Criterion Covered Total %
condition 16 40 40.0


and 3 conditions

line !l l&&!r l&&r condition
11 0 0 5 $attr->has_type_constraint and $attr->type_constraint->isa('Moose::Meta::TypeConstraint::Parameterized')
38 0 0 4 $attr->has_type_constraint and $attr->type_constraint->isa('Moose::Meta::TypeConstraint::Parameterized')
72 0 0 2 $attr->has_type_constraint and $attr->type_constraint->isa('Moose::Meta::TypeConstraint::Parameterized')
90 0 0 2 $attr->has_type_constraint and $attr->type_constraint->isa('Moose::Meta::TypeConstraint::Parameterized')
141 0 0 0 $attr->has_type_constraint and $attr->type_constraint->isa('Moose::Meta::TypeConstraint::Parameterized')
158 0 0 2 $attr->has_type_constraint and $attr->type_constraint->isa('Moose::Meta::TypeConstraint::Parameterized')
180 2 4 2 $predicate and ref $predicate ne 'CODE'

or 2 conditions

line l !l condition
17 0 2 $_ || 'undef'
44 0 2 $_ || 'undef'
75 0 2 $_[2] || 'undef'
99 0 0 $_[1] || 'undef'
144 0 0 $_[2] || 'undef'

or 3 conditions

line l !l&&r !l&&!r condition
17 41 2 0 $container_type_constraint->check($_) or confess('Value ' . ($_ || 'undef') . " did not pass container type constraint '${container_type_constraint}'")
44 8 2 0 $container_type_constraint->check($_) or confess('Value ' . ($_ || 'undef') . " did not pass container type constraint '${container_type_constraint}'")
163 2 0 0 $container_type_constraint->check($_) or confess('Value ' . (defined $_ ? $_ : 'undef') . " did not pass container type constraint '${container_type_constraint}'")