Branch Coverage

blib/lib/Game/TextMapper/Mapper.pm
Criterion Covered Total %
branch 61 84 72.6


line true false branch
133 2517 1347 if (/^(-?\d\d)(-?\d\d)(\d\d)?\s+(.*)/u) { }
328 1019 elsif (/^(-?\d\d-?\d\d(?:\d\d)?(?:--?\d\d-?\d\d(?:\d\d)?)+)\s+(\S+)\s*(?:["\x{201c}](.+)["\x{201d}])?/u) { }
136 883 elsif (/^(\S+)\s+attributes\s+(.*)/u) { }
0 883 elsif (/^(\S+)\s+lib\s+(.*)/u) { }
26 857 elsif (/^(\S+)\s+xml\s+(.*)/u) { }
443 414 elsif (/^(<.*>)/u) { }
36 378 elsif (/^(\S+)\s+path\s+attributes\s+(.*)/u) { }
15 363 elsif (/^(\S+)\s+path\s+(.*)/u) { }
8 355 elsif (/^text\s+(.*)/u) { }
7 348 elsif (/^glow\s+(.*)/u) { }
8 340 elsif (/^label\s+(.*)/u) { }
5 335 elsif (/^license\s+(.*)/u) { }
8 327 elsif (/^other\s+(.*)/u) { }
0 327 elsif (/^url\s+(\S+)/u) { }
8 319 elsif (/^include\s+(\S*)/u) { }
137 44 44 if ($tag eq "name")
189 0 8 if (scalar keys %{$self->seen;} > 5) { }
8 0 elsif (not $self->seen->{$1}) { }
196 8 0 if (index($location, '/') == -1 and -f $path) { }
0 0 elsif ($location =~ /^https?:/u) { }
0 0 elsif ($self->dist_dir =~ /^https?:/u) { }
204 0 0 if ($response->is_success) { }
211 0 0 unless $url =~ m[/$]u
216 0 0 if ($response->is_success) { }
227 0 319 if $_ and not /^\s*#/u
242 70 629 if ($attr)
258 0 9 unless @{$self->regions;}
261 0 2517 if $region->z > $maxz
276 0 9 if $z > 0
279 0 2517 unless $region->z == $z
280 9 2508 unless defined $minx and $minx <= $region->x
281 203 2314 unless defined $maxx and $maxx >= $region->x
282 9 2508 unless defined $miny and $miny <= $region->y
283 98 2419 unless defined $maxy and $maxy >= $region->y
285 9 0 unless defined $min_x_overall and $minx >= $min_x_overall
286 9 0 unless defined $min_y_overall and $maxx <= $max_x_overall
287 9 0 unless defined $min_y_overall
301 7 2 if @{$self->defs;}
319 54 179 if ($path or $attributes) { }
322 3 51 if ($path and not $attributes)
326 51 3 if ($attributes)
330 8 46 if ($path)