Branch Coverage

blib/lib/HTTP/OAIPMH/Log.pm
Criterion Covered Total %
branch 28 30 93.3


line true false branch
84 11 2 if (@_)
87 1 11 unless ref $fhspec eq 'ARRAY'
106 0 12 unless $fh
228 31 0 if (scalar $self->filehandles > 0)
244 1 7 if ($fhd->{'type'} eq 'json') { }
2 5 elsif ($fhd->{'type'} eq 'html') { }
263 2 7 if ($type eq 'TITLE') { }
278 1 1 if ($type eq 'TITLE') { }
315 1 1 if $self->num_fail == 0
322 1 11 if ($type eq 'TITLE') { }
2 9 elsif ($type eq 'REQUEST') { }
2 7 elsif ($type eq 'FAIL') { }
328 1 1 if defined $last_title
329 1 1 if defined $last_request
351 2 21 if ($entry->[1] =~ /$regex/)