Condition Coverage

blib/lib/Game/TextMapper/Smale.pm
Criterion Covered Total %
condition 38 66 57.5


and 3 conditions

line !l l&&!r l&&r condition
214 523 0 412 @arr == 1 and ref $arr[0] eq "ARRAY"
252 15 0 0 $primary eq "water" and $random < 10
15 0 0 $primary eq "swamp" and $random < 20
15 0 0 $primary eq "sand" and $random < 20
15 0 0 $primary eq "grass" and $random < 60
11 2 2 $primary eq "forest" and $random < 40
9 2 2 $primary eq "hill" and $random < 40
5 6 0 $primary eq "mountain" and $random < 20
382 12 1 2 $hex->[0] == 1 and $terrain_above

or 3 conditions

line l !l&&r !l&&!r condition
241 0 0 0 $primary ne "plains" or member($thing, "large-town", "city")
252 0 0 15 $primary eq "water" and $random < 10 or $primary eq "swamp" and $random < 20
0 0 15 $primary eq "water" and $random < 10 or $primary eq "swamp" and $random < 20 or $primary eq "sand" and $random < 20
0 0 15 $primary eq "water" and $random < 10 or $primary eq "swamp" and $random < 20 or $primary eq "sand" and $random < 20 or $primary eq "grass" and $random < 60
0 2 13 $primary eq "water" and $random < 10 or $primary eq "swamp" and $random < 20 or $primary eq "sand" and $random < 20 or $primary eq "grass" and $random < 60 or $primary eq "forest" and $random < 40
2 2 11 $primary eq "water" and $random < 10 or $primary eq "swamp" and $random < 20 or $primary eq "sand" and $random < 20 or $primary eq "grass" and $random < 60 or $primary eq "forest" and $random < 40 or $primary eq "hill" and $random < 40
2 2 9 $primary eq "water" and $random < 10 or $primary eq "swamp" and $random < 20 or $primary eq "sand" and $random < 20 or $primary eq "grass" and $random < 60 or $primary eq "forest" and $random < 40 or $primary eq "hill" and $random < 40 or $primary eq "mountain" and $random < 20
438 1 0 0 not defined $width or $width < 1
1 0 0 not defined $width or $width < 1 or $width > 100
439 1 0 0 not defined $height or $height < 1
1 0 0 not defined $height or $height < 1 or $height > 100
459 37 30 330 $1 < 1 or $2 < 1
460 52 93 252 $1 > $width or $2 > $height