| blib/lib/Template/Lace/DOM.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 43 | 57 | 75.4 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 76 | 77 | 1 | 4 | $self->tag eq 'optgroup' and ref $data eq 'HASH' |
| 145 | 33 | 0 | 16 | ($self->tag || '') eq 'option' and exists $data->{'content'} |
| 0 | 0 | 16 | ($self->tag || '') eq 'option' and exists $data->{'content'} and exists $data->{'value'} | |
| 29 | 0 | 4 | ($self->tag || '') eq 'optgroup' and exists $data->{'options'} | |
| 0 | 4 | 0 | ($self->tag || '') eq 'optgroup' and exists $data->{'options'} and exists $data->{'label'} | |
| 25 | 4 | 0 | ($self->tag || '') eq 'input' and exists $data->{'value'} |
| line | l | !l | condition |
|---|---|---|---|
| 45 | 0 | 1 | $target ||= '#content' |
| 77 | 4 | 4 | ref $data || '' |
| 83 | 4 | 0 | $self->attr('type') || '' |
| 90 | 16 | 3 | ref $data || '' |
| 113 | 166 | 2 | $self->tag || '' |
| 122 | 41 | 0 | $self->tag || '' |
| 38 | 0 | $self->tag || '' | |
| 32 | 0 | $self->tag || '' | |
| 145 | 47 | 2 | $self->tag || '' |
| 31 | 2 | $self->tag || '' | |
| 27 | 2 | $self->tag || '' | |
| 244 | 1 | 5 | $dom->tag || '' |
| 267 | 4 | 5 | $dom->tag || '' |
| 290 | 1 | 7 | $dom->tag || '' |
| 430 | 3 | 0 | $self->attr('class') || '' |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 122 | 3 | 6 | 32 | ($self->tag || '') eq 'ol' or ($self->tag || '') eq 'ul' |
| 338 | 1 | 0 | 8 | $attr eq 'checked' or $attr eq 'selected' |
| 1 | 1 | 7 | $attr eq 'checked' or $attr eq 'selected' or $attr eq 'hidden' |