Condition Coverage

blib/lib/Game/TextMapper/Mapper.pm
Criterion Covered Total %
condition 37 71 52.1


and 3 conditions

line !l l&&!r l&&r condition
212 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))
248 158 161 0 $_ and not /^\s*#/u
275 0 0 0 $size and not $attributes =~ s/\bfont-size="\d+pt"/font-size="$size"/u
294 42 0 0 $size and not $attributes =~ s/\bfont-size="\d+pt"/font-size="$size"/u
347 10 0 2631 defined $minx and $minx <= $region->x
348 10 199 2432 defined $maxx and $maxx >= $region->x
349 10 0 2631 defined $miny and $miny <= $region->y
350 10 91 2540 defined $maxy and $maxy >= $region->y
352 10 0 0 defined $min_x_overall and $minx >= $min_x_overall
353 10 0 0 defined $min_y_overall and $maxx <= $max_x_overall
391 37 5 3 $path and not $attributes

or 2 conditions

line l !l condition
137 0 2641 $3 || '00'
176 0 2382 $3 || $6 || '00'
278 0 0 $self->glow_attributes || ''
297 0 42 $self->glow_attributes || ''
344 0 10 $max_y_overall // 0
462 7 3 $self->attributes->{'default'} || 'fill="none"'
507 5 5 $self->license || ''

or 3 conditions

line l !l&&r !l&&!r condition
136 2641 0 1377 /^(-?\d\d)(-?\d\d)(\d\d)?\s+(.*)/u or /^(-?\d\d+)\.(-?\d\d+)(?:\.(\d\d+))?\s+(.*)/u
352 0 1025 /^(-?\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 2382 0 0 $1 || $4
2382 0 0 $2 || $5
281 0 0 0 $url =~ s/\%s/url_escape(&encode_utf8($label));/eu or $url .= url_escape(&encode_utf8($label))
388 8 37 180 $path or $attributes