Condition Coverage

blib/lib/OOP/Perlish/Class/Accessor.pm
Criterion Covered Total %
condition 47 75 62.6


and 3 conditions

line !l l&&!r l&&r condition
75 130 0 0 $self->readonly and $self->self->{'__initialized'}
160 130 0 @values and ($self->readonly and $self->self->{'__initialized'})
101 260 0 0 defined $readonly and not exists $$self{'_readonly'}
137 0 0 305 ref $class_self and blessed $class_self
181 10 10 10 @values and not $self->default_is_set
183 10 0 0 not defined $values[0] and scalar @values == 1
246 36 0 18 /HASH/ and ref $ref eq 'HASH'
250 21 0 15 /ARRAY/ and ref $ref eq 'ARRAY'
254 6 0 15 /SCALAR/ and ref $ref eq 'SCALAR'
323 410 0 45 $validator and ref $validator
423 48 0 10 exists $$self{'_default'} and $self->default_is_set
443 130 0 0 $self->readonly && $self->self->{'__initialized'}
0 0 130 @values and not $self->readonly && $self->self->{'__initialized'}
446 130 0 0 not defined $values[0] and scalar @values == 1
481 0 5 10 $self->is_set == -1 and not $self->default_is_set
591 187 0 83 ref $values[0] and scalar @values == 1
187 20 63 ref $values[0] and scalar @values == 1 and not $self->type =~ /(?:^REF|ARRAY)/
595 150 64 39 $self->type =~ /REF|CODE|REGEXP|OBJECT/ and not $self->type =~ /(?:^REF|SCALAR|ARRAY|HASH)/
596 9 0 30 $self->__validate_ref_type($values[0]) and scalar @values == 1
600 2 0 6 scalar @values == 1 and ref $values[0]
603 0 0 2 scalar @values == 1 and ref $values[0] eq 'GLOB'
636 44 132 82 scalar @input == 1 and ref $input[0]
176 37 45 scalar @input == 1 and ref $input[0] and ref $input[0] eq $self->base_type

or 3 conditions

line l !l&&r !l&&!r condition
229 88 185 0 $type ||= $self->type
601 24 10 0 scalar @values % 2 == 0 or ref $values[0] eq 'HASH'