| blib/lib/Game/TextMapper/Mapper.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 37 | 71 | 52.1 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 243 | 0 | 0 | 8 | index($location, "/") == -1 and -f ($path = "Mojo::File"->new($self->dist_dir, $location)) |
| 0 | 0 | 0 | $self->local_files and -f ($path = "Mojo::File"->new($location)) | |
| 279 | 158 | 161 | 0 | $_ and not /^\s*#/u |
| 306 | 0 | 0 | 0 | $size and not $attributes =~ s/\bfont-size="\d+pt"/font-size="$size"/u |
| 325 | 38 | 0 | 0 | $size and not $attributes =~ s/\bfont-size="\d+pt"/font-size="$size"/u |
| 378 | 10 | 0 | 2621 | defined $minx and $minx <= $region->x |
| 379 | 10 | 199 | 2422 | defined $maxx and $maxx >= $region->x |
| 380 | 10 | 0 | 2621 | defined $miny and $miny <= $region->y |
| 381 | 10 | 91 | 2530 | defined $maxy and $maxy >= $region->y |
| 383 | 10 | 0 | 0 | defined $min_x_overall and $minx >= $min_x_overall |
| 384 | 10 | 0 | 0 | defined $min_y_overall and $maxx <= $max_x_overall |
| 422 | 38 | 5 | 3 | $path and not $attributes |
| line | l | !l | condition |
|---|---|---|---|
| 137 | 0 | 2631 | $3 || '00' |
| 176 | 0 | 1520 | $3 || $6 || '00' |
| 309 | 0 | 0 | $self->glow_attributes || '' |
| 328 | 0 | 38 | $self->glow_attributes || '' |
| 375 | 0 | 10 | $max_y_overall // 0 |
| 493 | 7 | 3 | $self->attributes->{'default'} || 'fill="none"' |
| 538 | 5 | 5 | $self->license || '' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 136 | 2631 | 0 | 1372 | /^(-?\d\d)(-?\d\d)(\d\d)?\s+(.*)/u or /^(-?\d\d+)\.(-?\d\d+)(?:\.(\d\d+))?\s+(.*)/u |
| 341 | 0 | 1031 | /^(-?\d\d-?\d\d(?:\d\d)?(?:--?\d\d-?\d\d(?:\d\d)?)+)\s+(\S+)\s*(?:["\x{201c}](.+)["\x{201d}])?\s*(left|right)?\s*(\d+%)?/u or /^(-?\d\d+\.-?\d\d+(?:\.\d\d+)?(?:--?\d\d+\.-?\d\d+(?:\.\d\d+)?)+)\s+(\S+)\s*(?:["\x{201c}](.+)["\x{201d}])?\s*(left|right)?\s*(\d+%)?/u | |
| 151 | 0 | 0 | 6 | $transform or $region->label |
| 176 | 1520 | 0 | 0 | $1 || $4 |
| 1520 | 0 | 0 | $2 || $5 | |
| 312 | 0 | 0 | 0 | $url =~ s/\%s/url_escape(&encode_utf8($label));/eu or $url .= url_escape(&encode_utf8($label)) |
| 419 | 8 | 38 | 186 | $path or $attributes |