Condition Coverage

blib/lib/XHTML/MediaWiki.pm
Criterion Covered Total %
condition 21 71 29.5


and 3 conditions

line !l l&&!r l&&r condition
182 6 0 0 $p{'type'} eq 'unordered' and not $p{'level'}
333 2 0 0 $parser->in_nowiki and $type ne 'E' || $tagname ne 'nowiki'
337 2 0 0 $parser->in_state('pre') and $type ne 'E' || $tagname ne 'pre'
414 13 0 0 $is_cdata and $parser->can_cdata
550 3 0 0 $p{'auto_merge'} and $p{'new_state'} eq $$self{'current_block'}->block_type
677 2 0 3 $$block{'type'} eq 'paragraph' and 0 == @{$$block{'lines'};}
2 3 0 $$block{'type'} eq 'paragraph' and 0 == @{$$block{'lines'};} and not $$block{'line'}
789 11 0 0 $parser->in_prewiki and $line
11 0 0 $parser->in_prewiki and $line and not $line =~ /^\s+/
1206 0 0 0 ref $self eq ref $cmp_block and $self->level == $cmp_block->level
1351 4 0 0 $self->nests and $next->nests

or 2 conditions

line l !l condition
117 5 0 $type or 'special'
640 0 4 $$self{'state'} || 'paragraph'
700 1 0 shift() || ''
805 0 0 $$parser{'last'} or ''
926 0 5 ref $start_line || ''
985 3 0 shift() || ''
986 0 3 shift() || ''

or 3 conditions

line l !l&&r !l&&!r condition
211 9 6 0 $$self{'line'} ||= 'XHTML::MediaWiki::Parser::Block::Line'->new('state', 'wiki')
280 0 3 0 $$self{'lines'}[-1] || 'XHTML::MediaWiki::Parser::Block::Line'->new('state', 'dummy')
333 0 0 0 $type ne 'E' || $tagname ne 'nowiki'
337 0 0 0 $type ne 'E' || $tagname ne 'pre'
559 0 0 0 $state eq 'ordered' or $state eq 'unordered'
920 0 0 0 pop @text || ()
1220 0 0 0 $$self{'added'}[-1] || $self
1231 0 0 0 $$current{'block'} ||= ref($block)->new('formater', $$current{'formater'}, 'type', $current->type, 'level', $current->level + 1)