Branch Coverage

blib/lib/Blockchain/Ethereum/ABI/Type.pm
Criterion Covered Total %
branch 33 34 97.0


line true false branch
39 84 38 ref $data eq 'ARRAY' ? :
48 56 10 ref $data eq 'ARRAY' ? :
61 28 14 if ($self->_signature =~ /[a-z](\d+)/u)
99 439 102 scalar @data ? :
103 82 277 (shift())->_signature =~ /(bytes|string)(?!\d+)|(\[\])/u ? :
112 20 124 if ($signature =~ /\[(\d+)?\]$/gmu) { }
12 112 elsif ($signature =~ /^\(.*\)/u) { }
22 90 elsif ($signature =~ /^address$/u) { }
63 27 elsif ($signature =~ /^(u)?(int|bool)(\d+)?$/u) { }
21 6 elsif ($signature =~ /^(?:bytes)(\d+)?$/u) { }
5 1 elsif ($signature =~ /^string$/u) { }
148 25 57 if ($param->is_dynamic) { }
174 8 31 if ($instance->is_dynamic)
179 31 8 unless $instance->is_dynamic
189 31 8 unless $instance->is_dynamic
203 8 31 if ($instance->is_dynamic)
209 31 0 unless $instance->is_dynamic