Branch Coverage

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


line true false branch
40 84 38 ref $data eq 'ARRAY' ? :
49 56 10 ref $data eq 'ARRAY' ? :
62 28 14 if ($self->signature =~ /[a-z](\d+)/u)
100 439 102 scalar @data ? :
104 82 277 (shift())->signature =~ /(bytes|string)(?!\d+)|(\[\])/u ? :
113 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) { }
147 25 57 if ($param->is_dynamic) { }
172 8 31 if ($instance->is_dynamic)
177 31 8 unless $instance->is_dynamic
187 31 8 unless $instance->is_dynamic
201 8 31 if ($instance->is_dynamic)
207 31 0 unless $instance->is_dynamic