Branch Coverage

lib/Date/Holidays/Adapter.pm
Criterion Covered Total %
branch 4 40 10.0


line true false branch
25 2 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 0 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 0 5 if ($@)
185 0 0 unless ($self->{'_countrycode'} or $params->{'countrycode'})
192 0 2 unless ($params->{'nocheck'})
195 0 0 unless ($countrycode =~ /local/i or code2country($countrycode))
205 0 2 if (code2country($countrycode)) { }
219 0 0 if ($countrycode =~ /local/i) { }
227 0 0 if ($module = $self->_load($module))