Condition Coverage

blib/lib/Sub/HandlesVia/Toolkit/Moo.pm
Criterion Covered Total %
condition 20 61 32.7


and 3 conditions

line !l l&&!r l&&r condition
27 60 41 3 $INC{'Moo/Role.pm'} and "Moo::Role"->is_role($target)
65 0 3 117 $INC{'Moo.pm'} && 'Moo'->_constructor_maker_for($target)
158 19 0 0 not $default and $handler
0 10 5 $default->[0] eq "default" and is_CodeRef($default->[1])
0 10 0 $default->[0] eq "default" and is_Undef($default->[1])
0 0 10 $default->[0] eq "default" and is_Str($default->[1])
282 0 0 0 $type->has_coercion && $coerce
290 0 0 0 $weaken and ref $new_value
328 0 0 0 not $default and $handler
0 0 0 $default->[0] eq "default" and is_CodeRef($default->[1])
0 0 0 $default->[0] eq "default" and is_Undef($default->[1])
0 0 0 $default->[0] eq "default" and is_Str($default->[1])

or 2 conditions

line l !l condition
76 6 111 ref $coerce || ''
225 0 3 ref $coerce || ''
240 0 0 $spec->{'builder'} || 0
275 0 3 $spec->{'trigger'} || 0
278 0 3 $spec->{'weak_ref'} || 0

or 3 conditions

line l !l&&r !l&&!r condition
34 0 101 0 $Moo::MAKERS{$target}{'exports'}{'has'} || $Moo::MAKERS{$target}{'non_methods'}{'has'}
37 101 3 0 $orig ||= $target->can("has")
183 0 12 105 $spec->{'weak_ref'} || $spec->{'trigger'}
240 0 0 0 is_CodeRef($spec->{'builder'}) or ($spec->{'builder'} || 0) eq 1
259 0 0 0 $instance->{$attrname} ||= $default_literal ? $default : $instance->$default