Branch Coverage

Bio/Map/Position.pm
Criterion Covered Total %
branch 67 88 76.1


line true false branch
145 0 226 if ($value and $do_range)
150 177 49 if $map
151 0 226 if $marker
152 42 184 if $element
153 36 190 if $relative
154 37 189 if defined $value
156 145 81 if ($do_range)
157 145 0 if defined $start
158 106 39 if defined $end
159 28 117 if ($length)
160 28 0 if (defined $start and not defined $end) { }
0 0 elsif (not defined $start) { }
167 0 145 unless defined $self->end
189 91 2856 if ($relative)
190 0 91 unless ref $relative
191 0 91 unless $relative->isa('Bio::Map::RelativeI')
224 68 3376 if (@_)
240 189 348 if (defined $value)
242 44 145 unless defined $self->start
243 189 0 unless defined $self->end
264 0 811 unless defined $num
265 0 811 unless &looks_like_number($num)
267 569 242 if (ref $value and $value->isa('Bio::Map::RelativeI'))
275 0 242 if ($self->{'_relative_not_implicit'} and $self->absolute)
299 1295 2593 if (defined $value)
300 970 325 if (ref $value and $value->isa('Bio::Map::RelativeI')) { }
303 0 970 unless defined $raw
309 0 325 unless &looks_like_number($value)
311 145 180 unless defined $self->value
316 32 2886 if ($self->{'_relative_not_implicit'} and $self->absolute)
320 2842 44 defined $self->{'start'} ? :
339 986 663 if (defined $value)
340 523 463 if (ref $value and $value->isa('Bio::Map::RelativeI')) { }
343 0 523 unless defined $raw
349 0 463 unless &looks_like_number($value)
355 32 1094 if ($self->{'_relative_not_implicit'} and $self->absolute)
361 905 189 defined $self->{'end'} ? :
378 14 29 if ($length)
379 0 14 unless $length > 0
381 11 3 if $existing_length == $length
385 32 0 if (defined $self->start and defined $self->end)
423 83 0 if (defined $self->start and defined $self->end)
455 1302 760 if ($own_type and $req_type and $own_type eq $req_type and $own_relative->$own_type eq $value->$req_type)
461 0 760 unless defined $abs_start and defined $rel_start