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 64 41 3 $INC{'Moo/Role.pm'} and "Moo::Role"->is_role($target)
65 0 3 121 $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 10 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 105 0 $Moo::MAKERS{$target}{'exports'}{'has'} || $Moo::MAKERS{$target}{'non_methods'}{'has'}
37 105 3 0 $orig ||= $target->can("has")
183 0 12 109 $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