blib/lib/Mojo/DOM58.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 53 | 60 | 88.3 |
line | l | !l | condition |
---|---|---|---|
113 | 3 | 5 | $_ eq $ns and return $attrs->{$_} |
183 | 0 | 1836 | ${$_[0];}->tree($_[1]) && (return $_[0]) |
213 | 0 | 1847 | ${$_[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 | 121 | $type eq 'tag' and $all |
358 | 14 | 1 | 1 | +(my $tree = $self->tree)->[0] eq 'root' and not $content |
359 | 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 | 529 | 0 | shift() || [] |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
26 | 1839 | 156 | 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 | 714 | 10 | 201 | $type eq 'text' or $type eq 'cdata' |
724 | 23 | 178 | $type eq 'text' or $type eq 'cdata' or $type eq 'raw' |