blib/lib/Web/Scraper.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 30 | 53 | 56.6 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
61 | 40 | 3 | 0 | blessed $stuff and $stuff->isa('URI') |
40 | 3 | 0 | blessed $stuff and $stuff->isa('HTTP::Response') | |
40 | 0 | 3 | blessed $stuff and $stuff->isa('HTML::Element') | |
40 | 0 | 0 | ref $stuff and ref $stuff eq 'SCALAR' | |
144 | 0 | 0 | 3 | ref $key and ref $key eq 'CODE' |
166 | 47 | 26 | 0 | ref $val and ref $val eq 'CODE' |
70 | 0 | 3 | blessed $val and $val->isa('Web::Scraper') | |
173 | 4 | 0 | 5 | $uri and is_link_element($node, $val) |
227 | 0 | 0 | 1 | blessed $filter and $filter->can('filter') |
262 | 13 | 4 | 7 | $retval =~ /^\d+$/ and $_ ne $value |
2 | 14 | 1 | defined $retval and $retval eq '' |
line | l | !l | condition |
---|---|---|---|
273 | 5 | 0 | $HTML::Tagset::linkElements{$node->tag} || [] |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
32 | 0 | 0 | 0 | $UserAgent ||= 'LWP::UserAgent'->new('agent', 'Web::Scraper/' . $VERSION) |
71 | 0 | 0 | 0 | $current ||= $stuff->request->uri |
80 | 3 | 40 | 0 | $tree ||= $self->build_tree($html) |
166 | 0 | 31 | 30 | lc $val eq 'content' or lc $val eq 'text' |
0 | 7 | 23 | lc $val eq 'raw' or lc $val eq 'html' | |
262 | 7 | 0 | 17 | $retval =~ /^\d+$/ and $_ ne $value or defined $retval and $retval eq '' |