Branch Coverage

blib/lib/Object/String.pm
Criterion Covered Total %
branch 36 36 100.0


line true false branch
58 1 1 unless $self->starts_with($prefix)
66 1 1 unless $self->ends_with($suffix)
132 2 1 if ($self->starts_with(' ') or $self->starts_with("\t"))
141 2 1 if ($self->ends_with(' ') or $self->ends_with("\t"))
186 10 16 if $self->string =~ /^(on|yes|true)$/i
187 10 6 if $self->string =~ /^(off|no|false)$/i
197 5 1 if $self->string =~ /\s+/ or $self->string eq ''
210 1 2 if ($count < 0)
221 1 2 if ($count < 0)
257 3 3 $begins_underscore ? :
289 1 1 if defined $position
296 1 1 if defined $position
319 3 1 unless defined $char
320 2 2 if $count <= $self->length
328 3 1 unless defined $char
329 2 2 if $count <= $self->length
337 4 1 unless defined $char
338 2 3 if $count <= $self->length