Branch Coverage

blib/lib/CLDR/Number/Role/Base.pm
Criterion Covered Total %
branch 28 30 93.3


line true false branch
127 0 3193 unless $self->_init_args
134 15 1357 if $self->_has_init_arg($attribute)
145 0 1188 if $self->_has_init_arg($attribute)
157 162 32 if ($lang and exists $CLDR::Number::Data::Base::DATA->{$lang}) { }
2 30 elsif ($self->default_locale) { }
175 4 190 if ($ext and $ext =~ / -nu- ( [^-]+ ) /x) { }
193 8 1 if defined $system and exists $CLDR::Number::Data::System::DATA->{$system}
201 16 221 unless defined $locale
214 13 208 if $script
215 119 102 if $region
231 684 290 if grep {not $_;} @$subtags
233 44 246 unless exists $CLDR::Number::Data::Base::DATA->{$locale}
236 41 205 if (my $parent = $CLDR::Number::Data::Base::PARENT->{$locale})
242 164 41 if (not @tree or $tree[-1] ne 'root')
257 1538 595 if exists $data->{$locale} and exists $data->{$locale}{$type} and exists $data->{$locale}{$type}{$key}