Condition Coverage

blib/lib/Traveller/Mapper.pm
Criterion Covered Total %
condition 0 88 0.0


and 3 conditions

line !l l&&!r l&&r condition
355 0 0 0 $$_ = $$_ ge 'P' and $$_ le 'Z' ? 23 + ord($$_) - 80 : $$_ ge 'J'
0 0 0 $$_ = $$_ ge 'P' and $$_ le 'Z' ? 23 + ord($$_) - 80 : $$_ ge 'J' and $$_ le 'N' ? 18 + ord($$_) - 74 : $$_ ge 'A'
413 0 0 0 $hex->x == $x and $hex->y == $y
440 0 0 0 $other->starport eq $best->starport and distance($hex, $other) < distance($hex, $best)
464 0 0 0 $hex->starport =~ /^[A-D]$/u || $hex->gasgiant || $hex->trade->{'Wa'} and $hex->travelzone ne 'R'
531 0 0 0 $C{$u} && $C{$v}
535 0 0 0 $C{$u} and $C{$v}
0 0 0 $C{$v} and not $C{$u}
0 0 0 $C{$u} and not $C{$v}
563 0 0 0 @options and $distance

or 2 conditions

line l !l condition
87 0 0 $width //= 210
88 0 0 $height //= 297
245 0 0 $id{$coord} // 0
346 0 0 $$_ //= ''
365 0 0 $culture // ''

or 3 conditions

line l !l&&r !l&&!r condition
424 0 0 0 $hex->starport eq 'A' or $hex->naval
0 0 0 $hex->starport eq 'A' or $hex->naval or $hex->consulate
440 0 0 0 not $best or $other->starport lt $best->starport
0 0 0 not $best or $other->starport lt $best->starport or $other->starport eq $best->starport and distance($hex, $other) < distance($hex, $best)
464 0 0 0 $hex->starport =~ /^[A-D]$/u || $hex->gasgiant || $hex->trade->{'Wa'}
469 0 0 0 $hex->trade->{'In'} or $hex->trade->{'Ht'}
0 0 0 $hex->trade->{'Hi'} or $hex->trade->{'Ri'}
471 0 0 0 $other->trade->{'As'} or $other->trade->{'De'}
0 0 0 $other->trade->{'As'} or $other->trade->{'De'} or $other->trade->{'Ic'}
0 0 0 $other->trade->{'As'} or $other->trade->{'De'} or $other->trade->{'Ic'} or $other->trade->{'Ni'}
481 0 0 0 $other->trade->{'Ag'} or $other->trade->{'Ga'}
0 0 0 $other->trade->{'Ag'} or $other->trade->{'Ga'} or $other->trade->{'Wa'}
503 0 0 0 exists $seen{$start}{$end} or exists $seen{$end}{$start}
531 0 0 0 not $C{$u} && $C{$v} or $C{$u} != $C{$v}
535 0 0 0 $C{$u} || $C{$v}
579 0 0 0 $#{$route;} < $#shortest or not @shortest