Branch Coverage

blib/lib/Web3/Tiny/Util.pm
Criterion Covered Total %
branch 12 22 54.5


line true false branch
24 0 7 unless exists $UNITS{$unit}
35 0 4 unless my($sign, $int_part, $frac_part) = $amount =~ /^(-?)(\d*)(?:\.(\d*))?$/
39 0 4 if length $frac_part > $exp
43 0 4 if $sign eq "-"
51 0 3 if $exp == 0
53 0 3 ref $wei && $wei->isa('Math::BigInt') ? :
58 0 3 if length $str < $exp + 1
64 1 2 length $frac_part ? :
65 0 3 $neg ? :
71 0 1 unless defined $hex and length $hex
78 0 1 ref $n && $n->isa('Math::BigInt') ? :