Branch Coverage

blib/lib/Authen/Passphrase/BigCrypt.pm
Criterion Covered Total %
branch 33 48 68.7


line true false branch
134 4 24 if ($attr eq 'salt') { }
9 15 elsif ($attr eq 'salt_base64') { }
1 14 elsif ($attr eq 'salt_random') { }
1 13 elsif ($attr eq 'hash') { }
9 4 elsif ($attr eq 'hash_base64') { }
4 0 elsif ($attr eq 'passphrase') { }
135 0 4 if defined $salt
137 0 4 unless $value == int $value and $value >= 0 and $value < 4096
142 0 9 if defined $salt
144 0 9 unless $value =~ m[\A[./0-9A-Za-z]{2}\z]
148 0 1 if defined $salt
150 0 1 unless $value == 12
154 0 1 if @hashes or defined $passphrase
156 0 1 unless $value =~ /\A(?:[\x00-\xff]{8})+\z/
160 0 9 if @hashes or defined $passphrase
162 0 9 unless $value =~ m[\A(?:[./0-9A-Za-z]{10}[.26AEIMQUYcgkosw]) +\z]x
171 0 4 if @hashes or defined $passphrase
178 0 14 unless defined $salt
180 4 10 if (defined $passphrase) { }
10 0 elsif (@hashes) { }
181 0 4 $passphrase eq '' ? :
263 9 73 $passphrase eq '' ? :
264 46 36 unless $nsegs == @$self
266 26 20 unless $self->[$i]->match(substr($passphrase, $i << 3, 8))