Branch Coverage

blib/lib/Web3/Tiny/Wallet.pm
Criterion Covered Total %
branch 13 22 59.0


line true false branch
14 0 6 unless defined $val and length $val
15 6 0 if ($val =~ /^0x([0-9a-fA-F]*)$/)
17 0 6 if length($hex) % 2
32 0 1 unless defined $opts{'private_key'}
35 0 1 unless length $priv == 32
57 2 4 length $addr == 20 ? :
64 59 181 if ($c =~ /[a-f]/ and hex substr($hash, $i, 1) >= 8) { }
87 0 4 unless defined $tx{$req}
90 1 0 defined $tx{'to'} && length $tx{'to'} ? :
91 0 1 if length $to_bytes and length $to_bytes != 20
94 0 1 defined $tx{'data'} ? :