Branch Coverage

blib/lib/Bitcoin/Crypto/Role/ExtendedKey.pm
Criterion Covered Total %
branch 29 38 76.3


line true false branch
52 145 148 $self->_is_private ? :
53 38 255 if $purpose and $purpose eq 49
54 22 271 if $purpose and $purpose eq 84
67 0 117 unless defined $version
98 32 0 if (defined $serialized and length $serialized == 78) { }
105 0 0 $is_private ? :
0 32 if $is_private != $class->_is_private
109 15 17 if $is_private
127 0 44 if defined $network
129 32 12 if @found_networks > 0
133 0 32 if @found_networks > 1
136 0 32 if @found_networks == 0 and defined $network
140 0 32 if @found_networks == 0
179 38 22 $self->_is_private ? :
210 63 24 unless &blessed($path) and $path->isa("Bitcoin::Crypto::BIP44")
212 10 14 if $path->get_from_account
223 2 88 unless defined $path_info
229 1 15 if not $self->_is_private and $path_info->{'private'}
244 19 68 if $self->_is_private and not $path_info->{'private'}