Branch Coverage

blib/lib/Geo/Hex1.pm
Criterion Covered Total %
branch 37 48 77.0


line true false branch
34 0 29 unless my $c_length = @code
37 10 19 if ($c_length > 4) { }
39 0 10 if $level == -1
40 2 8 if $level == 0
51 0 29 if $@
60 2 27 if ($c_length > 5) { }
82 4 36 if ($level < 7) { }
4 32 elsif ($level == 7) { }
99 15 1 defined $level ? :
100 0 16 if not $level =~ /^\d+$/ or $level < 1 or $level > 60
117 5 11 if ($h_y_q > -$h_x_q + 1) { }
11 0 elsif ($h_y_q < -$h_x_q + 1) { }
118 4 1 if ($h_y_q < 2 * $h_x_q and $h_y_q > 0.5 * $h_x_q)
123 9 2 if ($h_y_q > 2 * $h_x_q - 1 and $h_y_q < 0.5 * $h_x_q + 0.5)
137 0 9 if $@
169 0 9 if $@
171 0 9 if $@
172 0 9 unless $level1 == $level2
179 4 5 if ($dh_y * $dh_x > 0) { }
180 0 4 $ah_x > $ah_y ? :
190 0 2 if $@
195 3 5 $d_y > 0 ? :
196 3 5 $d_y < 0 ? :
199 2 24 if $d_y == 0 and $d_x == 0