Branch Coverage

blib/lib/Bitcoin/Crypto/Role/ExtendedKey.pm
Criterion Covered Total %
branch 36 46 78.2


line true false branch
53 0 415 if @params < 2 or @params > 5
62 372 43 if @params >= 3
64 372 43 if @params >= 4
66 372 43 if @params >= 5
79 145 148 $self->_is_private ? :
80 38 255 if $purpose and $purpose eq 49
81 22 271 if $purpose and $purpose eq 84
94 0 117 unless defined $version
125 32 0 if (defined $serialized and length $serialized == 78) { }
132 0 0 $is_private ? :
0 32 if $is_private != $class->_is_private
136 15 17 if $is_private
154 0 44 if defined $network
156 32 12 if @found_networks > 0
160 0 32 if @found_networks > 1
163 0 32 if @found_networks == 0 and defined $network
167 0 32 if @found_networks == 0
207 38 22 $self->_is_private ? :
236 63 24 unless &blessed($path) and $path->isa("Bitcoin::Crypto::BIP44")
238 10 14 if $path->get_from_account
249 2 88 unless defined $path_info
255 1 15 if not $self->_is_private and $path_info->{'private'}
270 19 68 if $self->_is_private and not $path_info->{'private'}