blib/lib/Text/MediawikiFormat.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 20 | 69 | 28.9 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
241 | 0 | 0 | 169 | UNIVERSAL::isa($left, 'HASH') and UNIVERSAL::isa($right, 'HASH') |
550 | 5 | 4 | 3 | @$toc and $level > $$toc[-1]{'level'} |
637 | 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]) | |
651 | 0 | 0 | 0 | @$lines and $$lines[-1][1] =~ /\n$/ |
676 | 0 | 0 | 0 | $type eq 'E' and $stacktop eq $tagname |
698 | 0 | 0 | 0 | @$tagstack and grep /^\Q$stacktop\E$/, ('nowiki', 'pre') |
705 | 0 | 0 | 0 | $type eq 'E' and $HTML::Tagset::isPhraseMarkup{$tagname} |
765 | 0 | 0 | 0 | $tagname eq $stacktop and $HTML::Tagset::optionalEndTag{$tagname} |
819 | 0 | 0 | 0 | $is_cdata and $HTML::Tagset::isCDATA_Parent{$$tagstack[-1]} |
870 | 0 | 0 | 0 | @{$$parser{'processed_lines'};} and $$parser{'processed_lines'}[0][2] |
line | l | !l | condition |
---|---|---|---|
587 | 37 | 13 | $tags || {} |
588 | 17 | 33 | $opts || {} |
634 | 0 | 0 | $state ||= '' |
939 | 113 | 103 | $level || 0 |
1006 | 32 | 190 | ref $start_line || '' |
1127 | 7 | 0 | $$tags{'link'}($tag, $opts, $tags) || '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
519 | 20 | 0 | 0 | $$tags{'_schema_regex'} ||= _make_schema_regex(@{$$tags{'schemas'};}) |
751 | 0 | 0 | 0 | $HTML::Tagset::emptyElement{$tagname} or $isEmptyTag |
755 | 0 | 0 | 0 | $HTML::Tagset::isPhraseMarkup{$tagname} or $HTML::Tagset::emptyElement{$tagname} |
1000 | 18 | 0 | 0 | pop @text || () |
1051 | 226 | 1 | 0 | $$opts{'extended'} or $$opts{'absolute_links'} |
227 | 0 | 0 | $$opts{'extended'} or $$opts{'absolute_links'} or $$opts{'implicit_links'} | |
1091 | 178 | 47 | 0 | $$tags{'_schema_regex'} ||= _make_schema_regex(@{$$tags{'schemas'};}) |