Branch Coverage

lib/Data/MoneyCurrency.pm
Criterion Covered Total %
branch 28 36 77.7


line true false branch
26 1 9 if @_ == 0
31 1 5 if $args{'currency'} and $args{'country'}
36 1 7 if keys %args > 0
39 3 4 unless ($currency_abbreviation)
40 3 0 if ($country) { }
42 1 2 if (not $ra_currencies) { }
0 2 elsif (@$ra_currencies > 1) { }
53 1 5 unless (defined $rh_currency_iso)
58 0 1 unless open my $fh, "<:raw", $iso_path
60 0 1 unless close $fh
65 0 1 unless open $fh, "<:raw", $non_iso_path
67 0 1 unless close $fh
74 1 5 unless ($rh_currency_iso->{$currency_abbreviation})
83 5 62 if (&Cpanel::JSON::XS::is_bool($value) or &Types::Serialiser::is_bool($value))
86 5 0 $value ? :
347 1 11 if scalar @_ == 0
348 0 11 if scalar @_ > 1
353 10 1 if (my $rv = $rh_currencies_for_country->{$country})