Branch Coverage

blib/lib/Game/Deckar.pm
Criterion Covered Total %
branch 56 58 96.5


line true false branch
14 1 5 if $i == $j
67 1 1 if exists $decks{$name}
73 1 2 unless exists $decks{$name}
74 0 2 if @{$decks{$name}}
81 1 2 unless @rest
83 1 4 unless exists $decks{$d}
87 0 2 if $d eq $name
100 2 8 unless exists $decks{$src} and exists $decks{$dst}
102 2 6 if $index < 0 or $index > $sref->$#*
104 5 1 $top ? :
106 3 1 $top ? :
111 1 2 unless exists $decks{$name}
112 1 1 unless @{$decks{$name}}
119 1 8 unless %decks
124 1 46 unless exists $decks{$name}
130 2 5 unless exists $decks{$src} and exists $decks{$dst}
132 2 3 if $index < 0 or $index > $sref->$#*
133 1 2 if $count < 1 or $index + $count > @$sref
135 1 1 $top ? :
137 1 1 $top ? :
144 2 8 unless exists $decks{$src} and exists $decks{$dst}
145 1 7 unless @$indices
147 1 6 if @$indices > @$sref
150 2 9 if $index < 0 or $index > $sref->$#*
151 1 8 if $seen{$index}++
158 2 1 $top ? :
161 2 1 $top ? :
169 1 2 unless exists $decks{$name}
171 1 1 unless @$deck