| blib/lib/Bitcoin/Crypto/Script.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 12 | 20 | 60.0 |
| line | true | false | branch |
|---|---|---|---|
| 75 | 0 | 29 | if $network_byte ne $self->network->$byte_method |
| 88 | 0 | 9 | unless $this_version eq chr $version |
| 92 | 0 | 9 | unless length $data eq $length |
| 96 | 1 | 8 | if get_hrp($address) ne $self->network->segwit_hrp |
| 125 | 0 | 5 | unless ref $data eq "ARRAY" |
| 131 | 0 | 5 | unless $signatures_num >= 0 and $signatures_num <= 15 |
| 135 | 0 | 5 | unless @pubkeys >= $signatures_num and @pubkeys <= 15 |
| 170 | 0 | 58 | unless $types->{$type} |
| 180 | 58 | 587 | if ($args->{'type'}) |
| 183 | 0 | 58 | unless $args->{'address'} |