Condition Coverage

blib/lib/Crypt/Enigma.pm
Criterion Covered Total %
condition 0 39 0.0


and 3 conditions

line !l l&&!r l&&r condition
31 0 0 0 $_ =~ /^(rotors|startletters|ringsettings|stecker)$/ and ref $$args{$_} ne 'ARRAY'
140 0 0 0 defined $rotorName and $rotorName =~ /^Rotor(I|II|III|IV|V|VI|VII|VIII|Beta|Gamma)$/
145 0 0 0 defined $startLetter and $startLetter =~ /^[A-Z]$/
150 0 0 0 defined $ringSetting and $ringSetting =~ /[0-9]$/
0 0 0 defined $ringSetting and $ringSetting =~ /[0-9]$/ and $ringSetting >= 0
0 0 0 defined $ringSetting and $ringSetting =~ /[0-9]$/ and $ringSetting >= 0 and $ringSetting <= 25
155 0 0 0 defined $rotorNumber and $rotorNumber > 0
0 0 0 defined $rotorNumber and $rotorNumber > 0 and $rotorNumber < 6
216 0 0 0 $_->_getFlag('rotateNext') and $count != 2

or 2 conditions

line l !l condition
37 0 0 $$args{'rotors'} || ['RotorI', 'RotorII', 'RotorIII']
38 0 0 $$args{'startletters'} || ['Z', 'A', 'A']
39 0 0 $$args{'ringsettings'} || [0, 0, 0]
40 0 0 $$args{'reflector'} || 'ReflectorB'
41 0 0 $$args{'stecker'} || []
343 0 0 shift() || 0