Condition Coverage

blib/lib/Object/Proto/Sugar.pm
Criterion Covered Total %
condition 47 54 87.0


and 3 conditions

line !l l&&!r l&&r condition
96 15 7 4 ref $sp[-1] eq "HASH" and exists $sp[-1]{'default'}
97 2 20 4 $sp[0] && ref $sp[0]
4 6 16 not $sp[0] && ref $sp[0] and ($sp[0] || '') =~ /^(ro|rw|set)$/
277 7 51 6 not $ref2 and $ref1 ne "CODE"
398 110 0 3 exists $spec->{'reader'} and not ref $spec->{'reader'}
403 110 0 3 exists $spec->{'writer'} and not ref $spec->{'writer'}

or 2 conditions

line l !l condition
97 20 2 $sp[0] || ''
246 2 47 ref $spec->{'isa'} || ''
274 54 20 ref $spec->{'default'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
245 46 3 64 defined $spec->{'isa'} or defined $spec->{'coerce'}
247 2 3 44 $ref eq "CODE" or defined $spec->{'coerce'}
254 2 2 0 $spec->{'isa'} || sub { 1; }
2 2 0 $spec->{'coerce'} || sub { $_[0]; }
273 61 13 39 exists $spec->{'default'} or exists $spec->{'builder'}
275 13 51 10 exists $spec->{'builder'} or $ref1 eq "CODE"
277 7 51 0 $ref2 eq "CODE" or $ref1 eq "CODE"
376 1 1 111 defined $spec->{'init_arg'} or defined $spec->{'arg'}
377 1 1 0 $spec->{'init_arg'} || $spec->{'arg'}
384 1 0 112 $spec->{'weak_ref'} or $spec->{'weak'}