Branch Coverage

blib/lib/DateTime/Locale/Util.pm
Criterion Covered Total %
branch 11 18 61.1


line true false branch
21 0 11 unless @pieces
24 6 5 if (@pieces == 1) { }
0 5 elsif (@pieces == 3) { }
2 3 elsif (@pieces == 2) { }
26 0 6 if (exists $DateTime::Locale::Data::VariantCodes{uc $pieces[0]}) { }
5 1 elsif (exists $DateTime::Locale::Data::TerritoryCodes{uc $pieces[0]}) { }
1 0 elsif (exists $DateTime::Locale::Data::ScriptCodes{_tc($pieces[0])}) { }
0 0 elsif (length $pieces[0] == 2 or $pieces[0] =~ /^\d\d\d$/) { }
55 2 0 if (length $pieces[1] == 2 or $pieces[1] =~ /^\d\d\d$/) { }