| blib/lib/Finance/Quote/CurrencyRates/OpenExchange.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % | 
| branch | 1 | 12 | 8.3 | 
| line | true | false | branch | 
|---|---|---|---|
| 46 | 1 | 0 | unless ref $args eq "HASH" and exists $args->{'API_KEY'} | 
| 50 | 0 | 0 | if exists $args->{'cache'} | 
| 59 | 0 | 0 | if ($this->{'refresh'} or not exists $this->{'cache'}) | 
| 63 | 0 | 0 | unless $reply->code == 200 | 
| 68 | 0 | 0 | if (not $json_data or $json_data->{'error'} or not exists $json_data->{'rates'}) | 
| 78 | 0 | 0 | if (exists $this->{'cache'}{$from} and exists $this->{'cache'}{$to}) |