blib/lib/Mouse/Util/TypeConstraints.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 31 | 44 | 70.4 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
108 | 853 | 0 | 0 | @_ == 1 and ref $_[0] |
852 | 1 | 0 | @_ == 2 and ref $_[1] | |
129 | 15 | 835 | 3 | $is_subtype and not $parent |
215 | 4 | 10 | 9 | &Scalar::Util::blessed($_[0]) && Mouse::Util::does_role($_[0], $role) |
234 | 0 | 2 | 4 | @_ == 1 && ref $_[0] eq 'ARRAY' |
254 | 5 | 0 | 2 | @_ == 1 and ref $_[0] eq 'ARRAY' |
259 | 4 | 0 | 3 | @_ == 1 && ref $_[0] eq 'ARRAY' |
265 | 0 | 42 | 78 | defined $_[0] && !ref($_[0]) && exists $valid{$_[0]} |
line | l | !l | condition |
---|---|---|---|
149 | 6 | 4 | $TYPE{$name}{'package_defined_in'} || 'Mouse::Util::TypeConstraints' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
197 | 0 | 570 | 0 | $options->{'class'} || $name |
209 | 1 | 192 | 0 | $options->{'role'} || $name |
294 | 1 | 43 | 1 | $TYPE{$name} ||= $base->parameterize($param, $name) |
305 | 4 | 18 | 0 | $TYPE{$name} ||= 'Mouse::Meta::TypeConstraint'->new('name', $name, 'type_constraints', \@types) |
382 | 1 | 0 | 971 | Mouse::Util::is_a_type_constraint($spec) or not defined $spec |
397 | 18 | 0 | 1233 | Mouse::Util::is_a_type_constraint($spec) or not defined $spec |