Branch Coverage

blib/lib/Games/ScottAdams/Compile.pm
Criterion Covered Total %
branch 39 76 51.3


line true false branch
22 0 1 if (defined $lightsource)
53 0 1 unless (defined $maxload)
54 0 0 if $strict
59 0 0 unless defined $start or $strict
66 0 1 unless (defined $wordlen)
67 0 0 if $strict
72 0 1 unless (defined $lighttime)
73 0 0 if $strict
80 0 0 unless defined $treasury or $strict
82 0 1 $treasury eq '-' ? :
86 0 1 unless (defined $ident)
87 0 0 if $strict
91 0 1 unless (defined $version)
92 0 0 if $strict
125 0 33 unless defined $verb
126 0 33 unless defined $noun
140 30 90 if (defined $dest) { }
169 11 22 !defined($roomname) ? :
172 14 19 if (defined $getdrop)
173 0 14 unless my $canonicalisedNoun = $this->resolve_noun($getdrop)
199 0 76 unless defined $roomname
203 0 76 unless defined $room
214 0 67 unless defined $itemname
218 0 67 unless defined $item
229 0 55 unless (defined $msg)
235 46 9 unless (defined $val)
285 0 1 if ($dvn > 0) { }
1 0 elsif ($dvn < 0) { }
317 0 668 if $index == 1000
320 626 42 if defined $words[$index + $i]
322 42 626 if $i == @list
340 3 8 if (defined $listref)
350 0 201 if (grep {$_ eq $word;} @$listref)
368 0 53 if defined $$wordsref[$index + $i]
370 0 53 if $i > 0
395 26 100 unless defined $word
400 0 100 unless (defined $val)
404 0 100 unless defined $val