Condition Coverage

blib/lib/Params/ValidationCompiler/Compiler.pm
Criterion Covered Total %
condition 45 51 88.2


and 3 conditions

line !l l&&!r l&&r condition
91 45 2 1 $p{'named_to_list'} and $p{'slurpy'}
95 40 4 3 exists $p{'name'} and !defined($p{'name'}) || ref $p{'name'}
101 39 4 1 $p{'return_object'} and $p{'slurpy'}
203 0 4 1 $type->can("has_coercions") and $type->has_coercions
0 4 0 $type->can("has_coercion") and $type->has_coercion
235 7 1 1 $self->slurpy and ref $self->slurpy
255 2 1 1 $self->_name_is_optional and not &HAS_SUB_UTIL()
316 2 4 2 ref $params->{$p} && exists $params->{$p}{'getter'}
319 2 4 2 ref $params->{$p} and exists $params->{$p}{'predicate'}
322 0 2 2 HAS_CXSA() && !$ENV{'TEST_NAMED_ARGS_OBJECT_WITHOUT_CXSA'}
428 19 14 11 exists $spec->{'optional'} and $spec->{'optional'}
438 26 0 18 exists $spec->{'type'} and $spec->{'type'}
760 5 3 0 ref $default and &reftype($default) ne "CODE"

or 3 conditions

line l !l&&r !l&&!r condition
95 1 2 4 !defined($p{'name'}) || ref $p{'name'}
428 11 4 29 exists $spec->{'optional'} and $spec->{'optional'} or exists $spec->{'default'}
581 2 4 9 $specs[$i]{'optional'} or exists $specs[$i]{'default'}
644 3 5 11 $spec->{'optional'} or exists $spec->{'default'}