Branch Coverage

lib/Date/Holidays.pm
Criterion Covered Total %
branch 10 50 20.0


line true false branch
27 3 0 if ($params{'countrycode'}) { }
28 0 3 if (code2country($params{'countrycode'})) { }
47 3 0 if ($self and $self->{'_inner_class'} and $self->{'_inner_class'}->can('new')) { }
0 0 elsif (not $self->{'_inner_class'}) { }
57 3 0 if ($adapter) { }
85 3 0 unless ($params{'countries'})
106 3 0 if (not $params{'countries'}) { }
107 3 0 if (&blessed($self)) { }
120 0 0 if (&blessed($self)) { }
165 0 0 if ($country =~ /\A[+](\w+)/imsx)
176 0 0 unless ($dh)
190 0 0 if ($params{'gov'})
194 0 0 if ($params{'lang'})
199 0 0 if ($params{'regions'})
204 0 0 if ($params{'state'})
210 0 0 if ($precedent_calendar eq $country)
215 0 0 if ($precedent_calendar and $precedent_calendar ne $country)
223 0 0 if (defined $holiday)
228 0 0 if (defined $r)
256 0 0 unless ($self->{'_countrycode'} or $params->{'countrycode'})
263 0 3 unless ($params->{'nocheck'})
266 0 0 unless ($countrycode =~ /\Alocal\Z/imsx or code2country($countrycode))
278 0 3 if ($countrycode =~ /\Alocal\Z/imsx) { }
0 3 elsif (code2country($countrycode)) { }
299 0 0 if ($module = $self->_load($module))