Branch Coverage

blib/lib/Finance/Currency/Convert.pm
Criterion Covered Total %
branch 5 26 19.2


line true false branch
61 0 1 if defined $ratesFile and -e $self->{'RatesFile'}
76 0 1 if -e $self->{'RatesFile'}
81 0 0 unless (defined $self->{'RatesFile'} and -r $self->{'RatesFile'} and -s $self->{'RatesFile'} > 0)
86 0 0 unless open RATES, "<", $self->{'RatesFile'}
91 0 0 if (scalar @pieces > 1)
101 0 1 unless defined $self->{'RatesFile'}
103 0 1 unless open RATES, ">", $self->{'RatesFile'}
107 68 0 if (exists $self->{'CurrencyRates'}{$sourcerate}{$targetrate} and defined $self->{'CurrencyRates'}{$sourcerate}{$targetrate} and $self->{'CurrencyRates'}{$sourcerate}{$targetrate} ne "")
122 0 0 if ($@)
129 0 0 if ($@) { }
136 0 0 if ($ecbAvailable) { }
149 0 0 unless defined $q
167 0 0 unless defined $q