Condition Coverage

blib/lib/WWW/OhNoRobotCom/Search.pm
Criterion Covered Total %
condition 2 26 7.6


and 3 conditions

line !l l&&!r l&&r condition
66 0 0 0 defined $args{'term'} and length $args{'term'}
96 0 0 0 $is_lucky and $response->code == 302
109 0 0 0 $max_results >= $result_count and $has_results
132 0 0 0 $is_lucky and not %results
146 0 0 0 $t->is_start_tag('a') and defined $t->get_attr('class')
0 0 0 $t->is_start_tag('a') and defined $t->get_attr('class') and $t->get_attr('class') eq 'searchlink'
0 0 0 $get_link and $t->is_text

or 2 conditions

line l !l condition
28 0 1 $args{'timeout'} ||= 30

or 3 conditions

line l !l&&r !l&&!r condition
29 0 1 0 $args{'ua'} ||= 'LWP::UserAgent'->new('timeout', $args{'timeout'}, 'agent', 'Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.12) Gecko/20080207 Ubuntu/7.10 (gutsy) Firefox/2.0.0.12')