Condition Coverage

blib/lib/Game/TextMapper/Smale.pm
Criterion Covered Total %
condition 34 66 51.5


and 3 conditions

line !l l&&!r l&&r condition
214 582 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 3 1 $primary eq "forest" and $random < 40
12 2 0 $primary eq "hill" and $random < 40
14 0 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 1 14 $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
1 0 14 $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
0 10 4 $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