Branch Coverage

blib/lib/Games/SMTNocturne/Demons.pm
Criterion Covered Total %
branch 44 90 48.8


line true false branch
40 66612 66730 unless $options
42 70 133272 unless ref $demon1
43 70 133272 unless ref $demon2
44 21 133321 if ($$options{'sacrifice'})
45 12 9 unless ref $$options{'sacrifice'}
49 66682 66660 unless ($$options{'basic'})
50 32 66650 if (my $demon = _try_special_fusion($demon1, $demon2, $options)) { }
53 0 9 if $demon->type eq 'Fiend' and $demon1->type eq 'Fiend' || $demon2->type eq 'Fiend'
62 48 133262 if ($demon1->type eq 'Element' and $demon2->type eq 'Element') { }
5732 127530 elsif ($demon1->type eq 'Element' or $demon2->type eq 'Element') { }
48 127482 elsif ($demon1->type eq 'Mitama' and $demon2->type eq 'Mitama') { }
5600 121882 elsif ($demon1->type eq 'Mitama' or $demon2->type eq 'Mitama') { }
4203 117679 elsif ($demon1->type eq $demon2->type) { }
66 2864 2868 $demon1->type eq 'Element' ? :
76 2800 2800 $demon1->type eq 'Mitama' ? :
94 0 0 unless ref $demon
101 0 0 if defined $$options{'max_level'} and $$options{'max_level'} < $demon1->level
104 0 0 if defined $$options{'max_level'} and $$options{'max_level'} < $demon2->level
106 0 0 if (fuse($demon1, $demon2, $options) || '') eq $demon
116 0 0 if ($special)
118 0 0 unless $$special{$key}
119 0 0 if (my $name = $$special{$key}{'name'}) { }
0 0 elsif (my $type = $$special{$key}{'type'}) { }
123 0 0 ref $type ? :
132 0 0 if $key ne 'target' and defined $$options{'max_level'}
136 0 0 if ($$special{'demon3'}) { }
0 0 elsif ($$special{'demon2'}) { }
0 0 elsif ($$special{'demon1'}) { }
161 0 0 if ($$special{'target'}) { }
169 0 0 unless $_ eq $$fusion[0]
178 0 0 if ($$special{'target'}) { }
184 0 0 if ($demon->type eq 'Fiend')
185 0 0 if $$_[1]->type ne 'Fiend'
196 0 0 if ($$special{'sacrifice'})
203 0 0 if ($$special{'deathstone'})
207 0 0 if ($$special{'kagutsuchi'})
222 66642 40 unless $fused
226 18 22 unless $$options{'bosses'}
227 8 32 if $demon->boss and not $bosses{$demon->name}
238 0 48 unless $mitama
248 1024 4708 unless $direction
250 0 4708 unless $options
270 1720 2483 unless $element
280 17980 99699 unless $new_type
284 0 99699 unless $options