Condition Coverage

lib/Subclass/Of.pm
Criterion Covered Total %
condition 18 34 52.9


and 3 conditions

line !l l&&!r l&&r condition
90 2 0 0 @r != 1 and defined wantarray
2 0 0 @r != 1 and defined wantarray and not wantarray
108 19 0 0 @_ == 1 and ref $_[0] eq 'HASH'
119 0 12 53 defined $_ and not ref $_
12 18 35 defined $_ and not ref $_ and /^-/
278 4 0 0 exists $opts->{'lazy'} and not $opts->{'lazy'}
282 1 3 0 exists $opts->{'is'} and not $opts->{'is'} =~ /^(ro|rw|lazy)$/
289 1 0 0 &blessed($opts->{'isa'}) and $opts->{'isa'}->can('assert_valid')
301 2 0 1 exists $opts->{'default'} and not exists $self->{$name}

or 2 conditions

line l !l condition
121 0 35 $opts{$key} ||= []
163 0 15 $$opts{-'package'} ||= [sprintf('%s::__SUBCLASS__::%04d', $parent, ++$count{$parent})]

or 3 conditions

line l !l&&r !l&&!r condition
54 1 1 0 $subclass ||= do { my $built = $me->_build_subclass($base, \%opts); $i_made_this{&refaddr($current_sub)} = $built; $built }