Condition Coverage

blib/lib/Moose/Util/TypeConstraints.pm
Criterion Covered Total %
condition 44 60 73.3


and 3 conditions

line !l l&&!r l&&r condition
87 7 0 62 scalar @tcs == 1 and _detect_type_constraint_union($tcs[0])
116 0 1 133 defined $base_type and defined $type_parameter
157 6 0 11 $type->isa('Moose::Meta::TypeConstraint::Class') && $type->class eq $class
191 6 0 5 $type->isa('Moose::Meta::TypeConstraint::Role') && $type->role eq $role
298 18377 0 2192 &blessed($type) and $type->isa("Moose::Meta::TypeConstraint")
329 6541 6 2 @_ == 1 and not ref $_[0]
335 6531 0 16 ref $_[0] && !&blessed($_[0])
369 24 0 1 ref $type_name eq "ARRAY" and not @methods
373 1 0 24 @methods == 1 and ref $methods[0] eq "ARRAY"
433 1 0 13 @values == 1 and ref $values[0] eq "ARRAY"
462 2 1 2 @constraints == 1 and ref $constraints[0] eq "ARRAY"
505 411 0 10 &blessed($type) and $type->isa("Moose::Meta::TypeConstraint")
572 415 0 6534 defined $parent and $parent = &blessed($parent) ? $parent : find_or_create_isa_type_constraint($parent)
741 1 0 0 &blessed($type) and $type->isa("Moose::Meta::TypeConstraint::Parameterizable")

or 2 conditions

line l !l condition
154 256 1537 $options->{'package_defined_in'} || scalar caller 1
174 1776 0 $options{'name'} ||= "__ANON__"
188 5 1301 $options->{'package_defined_in'} || scalar caller 1
208 1294 1 $options{'name'} ||= "__ANON__"
476 9 5 $type_name || '__ANON__'
485 24 1 $type_name || '__ANON__'

or 3 conditions

line l !l&&r !l&&!r condition
506 410 1 0 find_or_parse_type_constraint($type) || throw_exception('CannotFindTypeGivenToMatchOnType', 'type', $type, 'to_match', $to_match, 'action', $action)
551 6 20 0 $type->_package_defined_in eq $pkg_defined_in or throw_exception("TypeConstraintIsAlreadyCreated", "package_defined_in", $pkg_defined_in, "type_name", $type->name)