Branch Coverage

blib/lib/Grid/Coord.pm
Criterion Covered Total %
branch 40 48 83.3


line true false branch
135 70 197 if (@_ == 2) { }
0 197 elsif (@_ != 4) { }
147 210 0 if (not @_) { }
152 206 0 if (not @_) { }
157 206 0 if (not @_) { }
162 206 0 if (not @_) { }
170 311 405 unless defined $min and defined $max
171 100 305 unless $min == $max
178 0 103 unless ($other->isa('Grid::Coord'))
187 15 88 if $coords[0] > $coords[2] or $coords[1] > $coords[3]
194 0 2 unless ($other->isa('Grid::Coord'))
202 1218 622 defined $_ ? :
203 49 411 if ($self->is_point) { }
213 101 22 defined $$self[$_] ? :
11 112 unless defined $$self[$_] ? defined $$other[$_] && $$self[$_] == $$other[$_] : !defined($$other[$_])
227 61 59 if (ref $_[0] eq 'Grid::Coord') { }
240 3 0 if (ref $_[0] eq 'Grid::Coord') { }
290 314 354 unless (defined $_[0])
291 82 272 unless (defined $_[1])
292 140 132 if (my $coderef = $_[2]) { }
327 2 49 unless $maj
328 40 9 if (my $min = &$min_it()) { }
358 58 15 if ($line)
360 13 45 unless ($line->overlap($self))