| blib/lib/HTML/Index/Document.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 13 | 24 | 54.1 |
| line | true | false | branch |
|---|---|---|---|
| 49 | 8 | 0 | if (lc $self->parser eq 'html') { } |
| 0 | 0 | elsif (lc($self->parser eq 'regex')) { } | |
| 88 | 8 | 0 | if (my $path = $self->path) |
| 90 | 0 | 8 | unless -r $path |
| 91 | 8 | 0 | unless ($self->contents) |
| 97 | 8 | 0 | unless $self->name |
| 99 | 0 | 8 | unless defined $self->name |
| 100 | 0 | 8 | unless defined $self->contents |
| 101 | 8 | 0 | unless $self->parser |
| 102 | 0 | 8 | unless $self->parser =~ /^(html|regex)$/i |
| 116 | 30 | 22 | if (ref $child) { } |
| 118 | 16 | 14 | if $child->tag =~ /^$NON_VISIBLE_HTML_TAGS$/ |