Branch Coverage

blib/lib/Bitcoin/BIP39.pm
Criterion Covered Total %
branch 15 30 50.0


line true false branch
78 0 7 unless my($langcode, $variant) = $language =~ /\A(\w{2})(?:-(\w+))?\z/
81 0 7 $variant ? :
83 5 2 if ($all_words_cache{$mod})
109 3 1 if (defined $args{'entropy'}) { }
1 0 elsif (defined $args{'entropy_hex'}) { }
118 0 0 unless ($bits == 128 or $bits == 160 or $bits == 192 or $bits == 224 or $bits == 256)
160 3 0 if (@words == 12) { }
0 0 elsif (@words == 15) { }
0 0 elsif (@words == 18) { }
0 0 elsif (@words == 21) { }
0 0 elsif (@words == 24) { }
179 36 50007 if ($word eq $all_words->[$idx])
201 1 2 unless ($chksum eq unpack("B$bits_chksum", $real_chksum))
205 1 1 if ($args{'encoding'} and $args{'encoding'} eq 'hex') { }
227 0 2 if $bits % 8