Branch Coverage

lib/Date/Holidays/Adapter.pm
Criterion Covered Total %
branch 11 40 27.5


line true false branch
25 251 0 if ($adaptee) { }
41 0 0 if ($self->{'_adaptee'}->can('new') and $self->isa('Date::Holidays::Adapter')) { }
51 0 0 if (&blessed($adaptee)) { }
58 0 0 unless ($sub)
63 0 0 if ($sub)
76 0 0 unless ($sub)
80 0 0 if ($sub)
94 224 0 if ($self->{'_adaptee'}->can('new') and $self->isa('Date::Holidays::Adapter')) { }
103 0 0 if (&blessed($adaptee)) { }
108 0 0 if ($adaptee->can($method)) { }
121 0 0 if ($adaptee->can("is_holiday"))
138 0 0 if ($sub)
152 0 0 if ($sub)
173 945 509 if ($@)
185 227 0 unless ($self->{'_countrycode'} or $params->{'countrycode'})
192 247 3 unless ($params->{'nocheck'})
195 0 247 unless ($countrycode =~ /local/i or code2country($countrycode))
205 247 3 if (code2country($countrycode)) { }
219 0 248 if ($countrycode =~ /local/i) { }
227 0 0 if ($module = $self->_load($module))