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
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 39 0 0 $size and not $attributes =~ s/\bfont-size="\d+pt"/font-size="$size"/u
378 10 0 2631 defined $minx and $minx <= $region->x
379 10 199 2432 defined $maxx and $maxx >= $region->x
380 10 0 2631 defined $miny and $miny <= $region->y
381 10 91 2540 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 41 5 3 $path and not $attributes

or 2 conditions

line l !l condition
137 0 2641 $3 || '00'
176 0 2038 $3 || $6 || '00'
309 0 0 $self->glow_attributes || ''
328 0 39 $self->glow_attributes || ''
375 0 10 $max_y_overall // 0
493 7 3 $self->attributes->{'default'} || 'fill="none"'
538 5 5 $self->license || ''

or 3 conditions

line l !l&&r !l&&!r condition
136 2641 0 1352 /^(-?\d\d)(-?\d\d)(\d\d)?\s+(.*)/u or /^(-?\d\d+)\.(-?\d\d+)(?:\.(\d\d+))?\s+(.*)/u
321 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 2038 0 0 $1 || $4
2038 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 41 178 $path or $attributes