Condition Coverage

blib/lib/Text/WikiText.pm
Criterion Covered Total %
condition 30 50 60.0


and 3 conditions

line !l l&&!r l&&r condition
321 16 8 55 @list and $list[-1]{'type'} eq 'normal text'
24 6 49 @list and $list[-1]{'type'} eq 'normal text' and $$elem{'type'} eq 'normal text'
342 4 0 0 defined $close and defined($_ = $input->readline)
4 0 0 defined $close and defined($_ = $input->readline) and /^\s*$/
346 12 15 17 not defined $close and defined $parbreak
27 11 6 not defined $close and defined $parbreak and /^$parbreak/
348 16 5 5 !($first || defined $filter) && s/^\n?$//
362 15 2 0 defined $close and not $last
385 1 0 0 exists $DEFAULT_PARA_RE{$type} && exists $DEFAULT_PARA_RE{$type}{'code'}
428 1 9 8 not defined $filter and /^$RE_ALL_ENV/
429 10 0 0 defined $close && s/$close\n?$//
570 0 0 0 ref $output_class && $output_class

or 2 conditions

line l !l condition
569 0 0 $opts{'format'} || 'HTML'

or 3 conditions

line l !l&&r !l&&!r condition
338 1 16 0 $filter || qr//
342 44 0 4 defined($_ = $input->peek) or defined $close and defined($_ = $input->readline) and /^\s*$/
448 1 3 0 $$def{'filter'} || qr//
572 0 0 0 $output_object or $output_class =~ /::/