Branch Coverage

blib/lib/Crypt/Enigma.pm
Criterion Covered Total %
branch 0 38 0.0


line true false branch
9 0 0 ref $_[0] ? :
31 0 0 if ($_ =~ /^(rotors|startletters|ringsettings|stecker)$/ and ref $$args{$_} ne 'ARRAY')
43 0 0 if (@{$rotors;} < 3)
106 0 0 unless (@{$stecker;} % 2 == 0)
140 0 0 unless (defined $rotorName and $rotorName =~ /^Rotor(I|II|III|IV|V|VI|VII|VIII|Beta|Gamma)$/)
145 0 0 unless (defined $startLetter and $startLetter =~ /^[A-Z]$/)
150 0 0 unless (defined $ringSetting and $ringSetting =~ /[0-9]$/ and $ringSetting >= 0 and $ringSetting <= 25)
155 0 0 unless (defined $rotorNumber and $rotorNumber > 0 and $rotorNumber < 6)
172 0 0 unless ($reflector =~ /^Reflector(B|Bdunn|C|Cdunn)$/)
200 0 0 unless ($letter =~ /[A-Z]/)
211 0 0 if ($count == 0)
216 0 0 if ($_->_getFlag('rotateNext') and $count != 2)
265 0 0 if (defined $rotorNumber) { }
314 0 0 if (defined $$self{'_stecker'}{$inputLetter})
334 0 0 if ($$self{'_debug'})
462 0 0 $$self{'_cycleLetterPosition'} == 0 ? :
501 0 0 if ($inputLetter eq $_)
517 0 0 if ($$self{'_cycleLetterPosition'} == 0) { }
543 0 0 if (defined $$self{'flags'}{$flag})