Condition Coverage

lib/Changes/Group.pm
Criterion Covered Total %
condition 24 48 50.0


and 2 conditions

line l !l condition
220 42 17 not exists $self->{'_reset'} && defined $self->{'_reset'} && length $self->{'_reset'} and scalar @_

and 3 conditions

line !l l&&!r l&&r condition
50 3 0 0 scalar @_ == 1 and $self->_is_a($_[0], "Changes::Change")
72 8 0 3 exists $self->{'_reset'} and defined $self->{'_reset'}
0 0 3 exists $self->{'_reset'} and defined $self->{'_reset'} and length $self->{'_reset'}
77 6 0 2 exists $self->{'_cache_value'} and defined $self->{'_cache_value'}
6 0 2 exists $self->{'_cache_value'} and defined $self->{'_cache_value'} and length $self->{'_cache_value'}
0 0 6 defined $self->{'raw'} and length "$self->{'raw'}"
220 0 0 42 exists $self->{'_reset'} && defined $self->{'_reset'} && length $self->{'_reset'}

or 2 conditions

line l !l condition
62 3 0 $self->new_change(%$opts) || (return $self->pass_error)
71 2 9 $self->{'_cache_value'} // ""
6 5 $self->{'raw'} // ""
106 3 0 $self->type // "bracket"
107 3 0 $self->spacer // ""
3 0 $self->name // ""
3 0 $nl // ""
159 0 0 $_[0] // ""
168 6 0 $self->{'_reset'} // ""
197 3 0 'Changes::Change'->new($opts) || (return $self->pass_error('Changes::Change'->error))
206 0 0 'Changes::NewLine'->new(@_) || (return $self->pass_error('Changes::NewLine'->error))

or 3 conditions

line l !l&&r !l&&!r condition
194 0 6 0 $opts->{$opt} //= $defaults->{$opt}