Branch Coverage

blib/lib/Blockchain/Ethereum/RLP.pm
Criterion Covered Total %
branch 32 38 84.2


line true false branch
34 0 360 unless defined $input
36 82 278 if (ref $input eq "ARRAY")
46 54 224 unless ($hex)
53 90 134 if length($hex) % 2 != 0
58 38 186 if $input_length == 1 and ord $hex < 128
65 228 40 if $length <= 55
67 40 0 if ($length < "1.84467440737096e+19")
78 40 47 unless $x
85 0 101 unless length $input
90 80 21 if ($type eq "string")
94 25 55 if $hex =~ /^0/u and (length($hex) - 1) % 2 != 0
117 0 185 unless $length
126 23 162 if ($prefix < 128) { }
125 37 elsif ($prefix <= 183 and $length > $short_string) { }
5 32 elsif ($prefix <= 192 and $length > $long_string and $length > $long_string + $self->_to_integer(substr($input, 1, $long_string))) { }
26 6 elsif ($prefix < 247 and $length > $list) { }
6 0 elsif ($prefix <= 255 and $length > $long_list and $length > $long_list + $self->_to_integer(substr($input, 1, $long_list))) { }
158 0 64 unless $length
160 26 38 if $length == 1