Branch Coverage

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


line true false branch
28 3 0 if ($params{'countrycode'}) { }
29 0 3 if (code2country($params{'countrycode'})) { }
48 3 0 if ($self and $self->{'_inner_class'} and $self->{'_inner_class'}->can('new')) { }
0 0 elsif (not $self->{'_inner_class'}) { }
58 3 0 if ($adapter) { }
86 3 0 unless ($params{'countries'})
107 3 0 if (not $params{'countries'}) { }
108 3 0 if (&blessed($self)) { }
121 0 0 if (&blessed($self)) { }
166 0 0 if ($country =~ /\A[+](\w+)/imsx)
177 0 0 unless ($dh)
191 0 0 if ($params{'gov'})
195 0 0 if ($params{'lang'})
200 0 0 if ($params{'regions'})
205 0 0 if ($params{'state'})
211 0 0 if ($precedent_calendar eq $country)
216 0 0 if ($precedent_calendar and $precedent_calendar ne $country)
224 0 0 if (defined $holiday)
229 0 0 if (defined $r)
257 0 0 unless ($self->{'_countrycode'} or $params->{'countrycode'})
264 0 3 unless ($params->{'nocheck'})
267 0 0 unless ($countrycode =~ /\Alocal\Z/imsx or code2country($countrycode))
279 0 3 if ($countrycode =~ /\Alocal\Z/imsx) { }
0 3 elsif (code2country($countrycode)) { }
300 0 0 if ($module = $self->_load($module))