Branch Coverage

blib/lib/DateTime/Format/Human/Duration/Locale.pm
Criterion Covered Total %
branch 24 30 80.0


line true false branch
18 7 23 if ($final)
19 0 7 if ref $final
24 0 7 if ($ns->can('get_human_span_from_units_array')) { }
2 5 elsif ($ns->can('get_human_span_from_units')) { }
5 0 elsif (my $sub = $ns->can('get_human_span_hashref')) { }
34 7 0 if (exists $$span{'locale_cache'}{$final})
46 18 12 unless $$args_hr{'get_locale_from'}
48 2 10 if (ref $$args_hr{'get_locale_from'})
51 1 1 if (exists $$args_hr{'get_locale_from'}{'locale'}) { }
1 0 elsif ($ns =~ /^DateTime::Locale::/ and exists $$args_hr{'get_locale_from'}{'id'}) { }
52 1 0 exists $$args_hr{'get_locale_from'}{'locale'}{'id'} ? :
63 7 5 $$args_hr{'get_locale_from'} eq $short ? :
67 13 4 if (exists $$args_hr{'base_object'}{'locale_cache'}{$locale})
68 5 8 if ($$args_hr{'base_object'}{'locale_cache'}{$locale}) { }
79 2 2 if (exists $INC{$path} or eval { do { ++$$args_hr{'loads'}{$locale}; require $path } }) { }