Condition Coverage

blib/lib/Game/HexDescribe/Utils.pm
Criterion Covered Total %
condition 28 161 17.3


and 3 conditions

line !l l&&!r l&&r condition
130 6 4878 71936 $key and ($c, $t) = $line =~ /^(\d+),(.*)/u
4226 658 0 $line ne "" and not $line =~ /^\s*#/u
165 0 0 0 $subtable =~ /^names for (.*)/u and $$data{"name for $1"}
166 0 0 0 $subtable =~ /^(?:capitalize|titlecase|highlightcase|normalize-elvish) (.*)/u and $data->{$1}
168 0 0 0 $subtable =~ /^same (.*)/u and $data->{$1} || $aliases{$1} || $1 eq 'adjacent hex'
169 0 0 0 $subtable =~ /^(?:here|nearby|other|append|later|with|and|save|store) (.+?)( as (.+))?$/u and $data->{$1}
267 0 0 0 $map and $map->isa("Mojo::Upload")
364 0 0 0 $start and $same_dir
502 0 10 0 $redirects and not $ENV{'HEX_DESCRIBE_OFFLINE'}
622 0 0 0 $level > 1 and not exists $table_data->{$word}
0 0 0 $level > 1 and not exists $table_data->{$word} and not $locals{$word}
0 0 0 $level > 1 and not $table_data->{$word}
0 0 0 $level > 1 and not $table_data->{$word} and not $locals{$word}
632 30 0 0 defined $min and $r < $min
633 30 0 0 defined $max and $r > $max
747 0 81 0 exists $locals{$key} and ref $locals{$key} eq "ARRAY"
749 0 0 0 $globals->{$key} and $globals->{$key}{'global'}
765 0 0 0 $where and $where eq "here"
766 0 0 0 $where and $where eq "here"
0 0 0 $where and $where eq "here" and $alias
767 0 0 0 $where and $where eq "global"
768 0 0 0 $where and $where eq "global"
0 0 0 $where and $where eq "global" and $alias
783 0 0 0 $where and $where eq "here"
784 0 0 0 $where and $where eq "here"
0 0 0 $where and $where eq "here" and $alias
785 0 0 0 $where and $where eq "global"
786 0 0 0 $where and $where eq "global"
0 0 0 $where and $where eq "global" and $alias
831 227 0 2 $where and $where eq "here"
832 227 0 2 $where and $where eq "here"
227 0 2 $where and $where eq "here" and $alias
833 227 2 0 $where and $where eq "global"
834 227 2 0 $where and $where eq "global"
229 0 0 $where and $where eq "global" and $alias
1282 0 0 0 @arr == 1 and ref $arr[0] eq "ARRAY"
1326 0 0 0 $from->[0] == $points[0][0] and $from->[1] == $points[0][1]
1358 0 0 0 $$line2[$i2 - 1] and $next eq $$line2[$i2 - 1]
0 0 0 $$line2[$i2 + 1] and $next eq $$line2[$i2 + 1]

or 2 conditions

line l !l condition
630 10 20 $m || 1
631 10 20 $p || 0
1115 0 0 $ref //= ""
1411 0 0 shift() || "\n\n---\n\n"

or 3 conditions

line l !l&&r !l&&!r condition
168 0 0 0 $data->{$1} || $aliases{$1} || $1 eq 'adjacent hex'
275 0 0 0 $hex =~ /\G([a-z]="[^"]+")\s*/cgu or $hex =~ /(\S+)/cgu
508 0 0 0 $res->code == 301 or $res->code == 302
609 0 0 0 $word =~ /^([a-z]+)="(.*)"/u or $word =~ /(.*)-(\d+)$/u
681 0 0 0 $name ||= pick($map_data, $table_data, $level, $coordinates, $words, "name for $key", $redirects)
779 0 0 0 not $text or grep {$text eq $_;} @{$locals{$key};}
821 293 0 12 not $action or $action eq "save"
835 217 0 12 not $action or $action eq "quote"
1303 0 0 0 not defined $min or $d < $min
1354 0 0 0 $i1 == 0 or $i1 > $#$line1
1358 0 0 0 $$line2[$i2 - 1] and $next eq $$line2[$i2 - 1] or $$line2[$i2 + 1] and $next eq $$line2[$i2 + 1]
1389 0 0 0 $seen{$coord} or not $map_data->{$coord}