Branch Coverage

blib/lib/Locale/Object/Country.pm
Criterion Covered Total %
branch 44 56 78.5


line true false branch
32 0 378 unless scalar keys %params == 1
43 0 378 unless exists $allowed_params{$parameter}
49 4 374 if ($parameter eq 'name') { }
373 1 elsif ($parameter eq 'code_alpha2' or $parameter eq 'code_alpha3') { }
66 0 378 unless $result
68 377 1 if (defined @{$result;}[0]) { }
90 16 361 if $country
125 0 361 unless my $code = $self->code_alpha2
161 0 361 unless @{$result;}[0]
177 0 33 unless $self->{'_name'}
180 6 27 unless $self->{'_languages'}
183 33 0 if wantarray
193 0 4 unless $self->{'_name'}
196 2 2 unless $self->{'_languages'}
202 5 15 if $_->official($self) eq 'true'
206 1 3 if wantarray
245 361 959 if (@_)
258 361 1 if (@_)
271 361 2 if (@_)
284 0 2 if (@_)
297 0 8 if (@_)
310 361 1 if (@_)
323 361 4 if (@_)
336 361 1 if (@_)
339 1 360 unless $timezone
356 1 1 if ($self->{'_all_timezones'}) { }
358 0 1 if wantarray
387 0 1 if wantarray