Branch Coverage

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


line true false branch
133 2507 1348 if (/^(-?\d\d)(-?\d\d)(\d\d)?\s+(.*)/u) { }
329 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 37 37 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 68 625 if ($attr)
258 0 9 unless @{$self->regions;}
261 0 2507 if $region->z > $maxz
276 0 9 if $z > 0
279 0 2507 unless $region->z == $z
280 9 2498 unless defined $minx and $minx <= $region->x
281 208 2299 unless defined $maxx and $maxx >= $region->x
282 9 2498 unless defined $miny and $miny <= $region->y
283 93 2414 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 52 179 if ($path or $attributes) { }
322 3 49 if ($path and not $attributes)
326 49 3 if ($attributes)
330 8 44 if ($path)