blib/lib/Text/MediawikiFormat.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 20 | 69 | 28.9 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
240 | 0 | 0 | 169 | UNIVERSAL::isa($left, 'HASH') and UNIVERSAL::isa($right, 'HASH') |
526 | 5 | 4 | 3 | @$toc and $level > $$toc[-1]{'level'} |
603 | 0 | 0 | 0 | @$lines and not $$lines[-1][1] =~ /\n$/ |
0 | 0 | 0 | $state ne $$lines[-1][0] && grep(/^nowiki$/, $state, $$lines[-1][0]) | |
0 | 0 | 0 | @$lines and not $$lines[-1][1] =~ /\n$/ and not $state ne $$lines[-1][0] && grep(/^nowiki$/, $state, $$lines[-1][0]) | |
618 | 0 | 0 | 0 | @$lines and $$lines[-1][1] =~ /\n$/ |
642 | 0 | 0 | 0 | $type eq 'E' and $stacktop eq $tagname |
663 | 0 | 0 | 0 | @$tagstack and grep /^\Q$stacktop\E$/, ('nowiki', 'pre') |
670 | 0 | 0 | 0 | $type eq 'E' and $HTML::Tagset::isPhraseMarkup{$tagname} |
725 | 0 | 0 | 0 | $tagname eq $stacktop and $HTML::Tagset::optionalEndTag{$tagname} |
773 | 0 | 0 | 0 | $is_cdata and $HTML::Tagset::isCDATA_Parent{$$tagstack[-1]} |
821 | 0 | 0 | 0 | @{$$parser{'processed_lines'};} and $$parser{'processed_lines'}[0][2] |
line | l | !l | condition |
---|---|---|---|
558 | 37 | 13 | $tags || {} |
559 | 17 | 33 | $opts || {} |
600 | 0 | 0 | $state ||= '' |
884 | 113 | 103 | $level || 0 |
944 | 32 | 190 | ref $start_line || '' |
1052 | 7 | 0 | $$tags{'link'}($tag, $opts, $tags) || '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
497 | 20 | 0 | 0 | $$tags{'_schema_regex'} ||= _make_schema_regex(@{$$tags{'schemas'};}) |
712 | 0 | 0 | 0 | $HTML::Tagset::emptyElement{$tagname} or $isEmptyTag |
716 | 0 | 0 | 0 | $HTML::Tagset::isPhraseMarkup{$tagname} or $HTML::Tagset::emptyElement{$tagname} |
938 | 18 | 0 | 0 | pop @text || () |
984 | 226 | 1 | 0 | $$opts{'extended'} or $$opts{'absolute_links'} |
227 | 0 | 0 | $$opts{'extended'} or $$opts{'absolute_links'} or $$opts{'implicit_links'} | |
1022 | 178 | 47 | 0 | $$tags{'_schema_regex'} ||= _make_schema_regex(@{$$tags{'schemas'};}) |