Condition Coverage

blib/lib/WWW/XKCD/AsText.pm
Criterion Covered Total %
condition 21 35 60.0


and 3 conditions

line !l l&&!r l&&r condition
88 41 0 0 $t->is_start_tag('textarea') and defined $t->get_attr('name')
41 0 0 $t->is_start_tag('textarea') and defined $t->get_attr('name') and $t->get_attr('name') eq 'transcription'
39 0 1 $nav{'look_for_p'} == 1 and $t->is_text
39 0 1 $nav{'look_for_p'} == 1 and $t->is_text and $t->as_is =~ /Here's the transcription for this comic/
24 14 1 $nav{'look_for_p'} == 2 and $t->is_start_tag('p')
24 7 7 $nav{'is_p'} and $t->is_text
24 1 6 $nav{'is_p'} and $t->is_start_tag('BR')
24 0 1 $nav{'is_p'} and $t->is_end_tag('p')
24 0 0 $nav{'get_text_from_textarea'} == 1 and $t->is_end_tag('textarea')
24 0 0 $nav{'get_text_from_textarea'} == 1 and $t->is_text

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
31 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')