Branch Coverage

lib/Data/MoneyCurrency.pm
Criterion Covered Total %
branch 29 36 80.5


line true false branch
24 1 9 if @_ == 0
29 1 5 if $args{'currency'} and $args{'country'}
34 1 7 if keys %args > 0
37 3 4 unless ($currency_abbreviation)
38 3 0 if ($country) { }
40 1 2 if (not $ra_currencies) { }
0 2 elsif (@$ra_currencies > 1) { }
51 1 5 unless (defined $rh_currency_iso)
56 0 1 unless open my $fh, "<:raw", $iso_path
58 0 1 unless close $fh
63 0 1 unless open $fh, "<:raw", $non_iso_path
65 0 1 unless close $fh
75 182 2346 if (&Cpanel::JSON::XS::is_bool($value) or &Types::Serialiser::is_bool($value))
78 85 97 $value ? :
84 1 5 unless ($rh_currency_iso->{$currency_abbreviation})
349 1 13 if @_ == 0
350 0 13 if @_ > 1
355 12 1 if (my $rv = $rh_currencies_for_country->{$country})