| blib/lib/Mojo/DOM58.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % | 
| condition | 59 | 66 | 89.3 | 
| line | l | !l | condition | 
|---|---|---|---|
| 113 | 2 | 5 | $_ eq $ns and return $attrs->{$_} | 
| 183 | 0 | 1955 | ${$_[0];}->tree($_[1]) && (return $_[0]) | 
| 213 | 0 | 1966 | ${$_[0];}->xml($_[1]) && (return $_[0]) | 
| 324 | 143 | 82 | defined $match++ and $_ eq $tree and last | 
| line | !l | l&&!r | l&&r | condition | 
|---|---|---|---|---|
| 196 | 8 | 6 | 3 | $tag eq 'input' and $type eq 'radio' || $type eq 'checkbox' | 
| 238 | 51 | 0 | 86 | $tree->[0] eq 'tag' and $tree = $tree->[3] | 
| 303 | 59 | 0 | 21 | &blessed($input) and $input->isa('Mojo::DOM58') | 
| 324 | 0 | 143 | 82 | defined $match++ and $_ eq $tree | 
| 331 | 17 | 7 | 4 | $i == -1 && !@$nodes | 
| 344 | 2 | 55 | 152 | $type eq 'tag' and $all | 
| 350 | 6 | 6 | 137 | $node->[1] ne 'script' and $node->[1] ne 'style' | 
| 360 | 14 | 1 | 1 | +(my $tree = $self->tree)->[0] eq 'root' and not $content | 
| 361 | 1 | 11 | 3 | $tree->[0] ne 'root' and $tree->[0] ne 'tag' | 
| 12 | 2 | 1 | $tree->[0] ne 'root' and $tree->[0] ne 'tag' and $content | 
| line | l | !l | condition | 
|---|---|---|---|
| 195 | 8 | 9 | $self->{'type'} || '' | 
| 246 | 553 | 0 | shift() || [] | 
| line | l | !l&&r | !l&&!r | condition | 
|---|---|---|---|---|
| 26 | 1958 | 170 | 0 | ref $class || $class | 
| 62 | 3 | 1 | 36 | @_ > 1 or ref $_[0] | 
| 79 | 6 | 18 | 31 | $type eq 'root' or $type eq 'tag' | 
| 196 | 2 | 3 | 4 | $type eq 'radio' || $type eq 'checkbox' | 
| 255 | 7 | 27 | 2 | $tree->[0] eq 'root' or $tree->[0] eq 'tag' | 
| 344 | 823 | 10 | 243 | $type eq 'text' or $type eq 'cdata' | 
| 833 | 34 | 209 | $type eq 'text' or $type eq 'cdata' or $type eq 'raw' | |
| 350 | 3 | 140 | 9 | $xml or $node->[1] ne 'script' and $node->[1] ne 'style' |