Branch Coverage

lib/Changes/Change.pm
Criterion Covered Total %
branch 21 36 58.3


line true false branch
41 0 47 unless $self->SUPER::init(@_)
50 0 6 unless (exists $self->{'_reset'} and defined $self->{'_reset'} and length $self->{'_reset'})
54 4 39 if (exists $self->{'_cache_value'} and defined $self->{'_cache_value'} and length $self->{'_cache_value'}) { }
39 0 elsif (defined $self->{'raw'} and length "$self->{'raw'}") { }
68 1 5 if ($max > 0 and $self->normalise->length + $str->length > $max) { }
71 1 2 $_ eq "\t" ? :
74 0 1 if ($self->_is_code($wrapper)) { }
1 0 elsif ($self->_load_class('Text::Wrap')) { }
0 0 elsif ($self->_load_class('Text::Format')) { }
82 0 0 if ($@)
84 0 0 if $self->_warnings_is_enabled
105 1 0 if (defined $text and length "$text")
138 2 2 if (not exists $self->{'_reset_normalise'} && defined $self->{'_reset_normalise'} && length $self->{'_reset_normalise'} and exists $self->{'_normalised'} and $self->_is_a($self->{'_normalised'}, "Module::Generic::Scalar"))
148 0 8 if $str->is_empty
149 2 6 if ($str->index("\n") != -1)
170 47 50 if (not exists $self->{'_reset'} && defined $self->{'_reset'} && length $self->{'_reset'} and scalar @_)
198 0 6 unless defined $self
199 0 6 if ${^GLOBAL_PHASE} eq "DESTRUCT"