| blib/lib/Blockchain/Ethereum/Keystore/File.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 11 | 18 | 61.1 |
| line | true | false | branch |
|---|---|---|---|
| 31 | 0 | 2 | unless builtin::blessed($key) and $key->isa("Blockchain::Ethereum::Key") |
| 45 | 1 | 5 | unless open my $fh, "<:raw", $file_path |
| 53 | 0 | 5 | unless $decoded->{'version'} and $decoded->{'version'} == 3 |
| 54 | 0 | 5 | unless defined $password |
| 125 | 5 | 0 | unless $self->private_key |
| 137 | 1 | 4 | unless lc $computed_mac eq lc $expected_mac |
| 200 | 2 | 0 | if ($password) |
| 207 | 0 | 2 | unless defined $self->password |
| 229 | 0 | 2 | unless open my $fh, ">:raw", $file_path |