Condition Coverage

lib/Text/Frundis/Processing.pm
Criterion Covered Total %
condition 238 324 73.4


and 2 conditions

line l !l condition
3967 0 0 diag_warning("frundis:warning:no '${class}' information found, skipping\n") and return
4040 0 0 diag_warning("frundis:warning:no TOC information found, skipping TOC generation\n") and return

and 3 conditions

line !l l&&!r l&&r condition
331 12 48 0 $Opts{'redirect_stderr'} and $Opts{'all_in_one_file'} && $Opts{'target_format'} eq 'xhtml' || $Opts{'target_format'} eq 'latex'
360 0 30 0 defined $Opts{'output_file'} and $Opts{'all_in_one_file'}
447 2070 78 357 $Scope{'de'} and not /^\.\s*#\./u
2127 9 12 $Count{'if_ignore'} and not /^\.\s*(?:#;|#if)/u
480 1551 80 0 $macro eq '#.' and $Scope{'de'}
507 49 11 0 $State{'text'} and $State{'wants_space'}
526 2070 78 357 $Scope{'de'} and not /^\.\s*#\./u
2127 9 12 $Count{'if_ignore'} and not /^\.\s*(?:#;|#if)/u
558 1551 80 0 $macro eq '#.' and $Scope{'de'}
594 88 1549 5 not $Macro{$macro} and test_if_not_allowed_macro($macro)
635 26 8 0 @{$Scope{'Bd'};} and $Scope{'Bd'}[0]{'t'} eq 'literal'
732 2 11 10 defined $opts{'f'} and not $opts{'f'} =~ /$Rx{'format'}/u
759 26 46 4 defined $opts{'t'} and $opts{'t'} eq 'verse'
26 12 34 defined $opts{'t'} and $opts{'t'} eq 'table'
918 32 10 0 defined $opts{'t'} and not defined $Xmtag{$opts{'t'}}
1008 14 0 2 $BfMacro{'filter_tag'} and defined $Filters{$BfMacro{'filter_tag'}}{'code'}
1142 40 1 1 $st->{'id'} and $Opts{'target_format'} eq 'latex'
1172 15 4 2 @{$Scope{'Bl'};} and not $Scope{'item'}
1203 42 2 2 defined $opts{'f'} and not $opts{'f'} =~ /$Rx{'format'}/u
1216 4 0 2 $State{'wants_space'} and not $Flag{'ns'}
1527 22 2 0 $Param{'lang'} eq 'fr' and $close_delim =~ /^(?:!|:|\?|;)$/u
1619 53 20 4 defined $opts{'t'} and not defined $Xmtag{$opts{'t'}}
1782 28 27 0 $opts{'mini'} and $opts{'lof'}
1783 28 27 0 $opts{'mini'} and $opts{'lot'}
1784 28 27 0 $opts{'mini'} and $opts{'toc'}
1808 9 46 0 $opts{'toc'} and $opts{'lof'}
9 46 0 $opts{'toc'} and $opts{'lot'}
55 0 0 $opts{'lof'} and $opts{'lot'}
1950 3 0 0 $opts{'shell'} and $opts{'code'}
1994 6 0 13 defined $opts{'c'} and $opts{'c'} =~ /^[a-zA-Z]*$/u
2051 93 0 2 $parameter eq 'xhtml-index' and not $Param{$parameter} =~ /^(?:full|summary|none)$/u
2119 160 0 0 @Arg and $Process
2193 2 10 0 defined $Flag{$key} and $value eq $Flag{$key}
2310 32 37 30 $Opts{'target_format'} =~ /$Rx{'xhtml_or_epub'}/u and not $Opts{'all_in_one_file'}
2320 30 97 0 $Opts{'target_format'} eq 'xhtml' and $Opts{'all_in_one_file'}
2350 56 7 120 $Opts{'target_format'} =~ /$Rx{'xhtml_or_epub'}/u and not $opts{'nonum'}
2702 3005 2 17 $Param{'lang'} eq 'fr' and not $Flag{'_verbatim'}
2739 2 72 39 @Arg and $Arg[$#Arg] =~ /^(?:\\~)?\p{Punct}+$/u
74 4 35 @Arg and $Arg[$#Arg] =~ /^(?:\\~)?\p{Punct}+$/u and not $Arg[$#Arg] =~ /^\\&/u
2773 172 16 87 $Opts{'target_format'} eq 'latex' and not $last
3040 9 276 0 not $Flag{'ns'} || $ns and $State{'wants_space'} || $State{'text'}
3100 0 0 716 defined $arg and not $arg =~ /^-/u
3343 29 1523 2 not $macro =~ /^Ef$/u and test_for_unclosed_format_block()
1522 29 1 $Flag{'_verbatim'} and not $macro =~ /^Ef|Ed$/u
1243 18 290 @{$Scope{'Bl'};} and $Scope{'Bl'}[0]{'t'} ne 'verse'
1261 288 2 @{$Scope{'Bl'};} and $Scope{'Bl'}[0]{'t'} ne 'verse' and not $AllowedInBl{$macro}
3516 1 1 1 $cover and not !($Param{'epub-version'} =~ /^3/u)
3545 1 1 1 $cover and $Param{'epub-version'} =~ /^3/u
3824 21 13 7 $Opts{'target_format'} eq 'epub' and $Param{'epub-version'} =~ /^3/u
13 21 0 $Opts{'target_format'} eq 'xhtml' and $Param{'xhtml5'}
3840 21 13 7 $Opts{'target_format'} eq 'epub' and $Param{'epub-version'} =~ /^3/u
3864 13 14 12 $Param{'epub-css'} and $Opts{'target_format'} eq 'epub'
13 0 14 $Param{'xhtml-css'} and $Opts{'target_format'} eq 'xhtml'
3878 18 21 0 $Opts{'target_format'} ne 'epub' and $Param{'xhtml-top'}
3884 18 21 0 $Opts{'target_format'} ne 'epub' and $Param{'xhtml-bottom'}
3896 15 15 0 $Opts{'target_format'} ne 'epub' and $State{'_xhtml_navigation_text'}
3967 0 0 11 defined $loXstack{$class} and @{$loXstack{$class};}
4046 19 21 0 $opts->{'mini'} and $State{'nav_count'}
4108 74 36 0 $opts->{'mini'} and $mini_macro eq 'Ch'
4192 118 0 2 $href =~ /^index/u and not $Opts{'all_in_one_file'}

or 2 conditions

line l !l condition
372 6 0 $Param{'document-title'} // ''
413 3 0 $Param{'document-title'} // ''
614 0 64 $opts{'id'} //= ''
615 32 32 $opts{'t'} //= ''
702 21 4 $opts{'f'} // ''
801 50 26 $opts{'t'} //= 'item'
905 4 72 $opts{'id'} //= ''
974 8 0 $Flag{'_fr_nbsp_auto'} // 1
1606 18 124 $opts{'id'} //= ''
1670 11 81 $opts{'t'} //= 'toc'
3146 31 2 $msg //= ''
3395 3 0 $Param{'document-title'} // ''
3751 2 0 $Lang_babel{$lang} // 'english'
3752 2 0 $Lang_mini{$lang} // 'english'
3754 2 0 $Param{'document-title'} // ''
3755 1 1 $Param{'document-author'} // ''
3756 1 1 $Param{'document-date'} // ''
4041 33 7 $opts //= {}
4065 3 0 $Param{'document-title'} // ''

or 3 conditions

line l !l&&r !l&&!r condition
331 24 24 0 $Opts{'all_in_one_file'} && $Opts{'target_format'} eq 'xhtml' || $Opts{'target_format'} eq 'latex'
714 21 0 4 defined $opts{'f'} or $opts{'t'}
936 10 32 0 $begin //= enclose_begin($Xmtag{'_default'}{'cmd'}, {'id', $opts{'id'}})
1007 6 11 10 not $Scope{'format'} or $Scope{'format'} =~ /$Rx{'format'}/u
1039 0 2 8 $st->{'t'} eq 'enum' or $st->{'t'} eq 'item'
1135 10 32 0 $end ||= enclose_end($Xmtag{'_default'}{'cmd'})
1334 2 0 6 $image =~ /[{}]/u or $label =~ /[{}]/u
1648 20 53 0 $begin //= enclose_begin($Xmtag{'_default'}{'cmd'}, {'id', $opts{'id'}})
1649 20 53 0 $end //= enclose_end($Xmtag{'_default'}{'cmd'})
1676 86 0 4 defined $Self->{'loX'}{$opts{'t'}} or $opts{'id'}
1805 0 0 55 $opts{'toc'} or $opts{'lof'}
0 0 55 $opts{'toc'} or $opts{'lof'} or $opts{'lot'}
1808 0 0 55 $opts{'toc'} and $opts{'lof'} or $opts{'toc'} and $opts{'lot'}
0 0 55 $opts{'toc'} and $opts{'lof'} or $opts{'toc'} and $opts{'lot'} or $opts{'lof'} and $opts{'lot'}
1923 0 1 2 $opts{'c'} eq '' or $HtmlContainingFlow{$opts{'c'}}
2005 2 4 1 $opts{'c'} eq '' or $HtmlPhrasing{$opts{'c'}}
2096 0 0 160 $name =~ /^[A-Z][a-z]$/u or $name =~ /^#/u
2227 56 28 0 $macro eq 'Sh' or $macro eq 'Ss'
2394 26 20 8 defined $opts{'f'} or @Arg
2538 2 8 0 $end //= enclose_end($Xmtag{'_default'}{'cmd'})
2862 30 3 0 $Opts{'target_format'} eq 'xhtml' or $Opts{'target_format'} eq 'epub'
3040 4 5 276 $Flag{'ns'} || $ns
167 0 109 $State{'wants_space'} || $State{'text'}
3052 14 26 87 $Scope{'paragraph'} || $Scope{'item'} || $State{'inline'}
3078 199 1413 0 $cmd //= $State{'macro'}
3228 2 8 0 $begin //= enclose_begin($Xmtag{'_default'}{'cmd'})
3372 2 0 0 mkdir $images_dir or diag_fatal("${images_dir}:$!")
2 0 1 @Image or defined $Param{'epub-cover'}
3761 1 0 0 $InfosFlag{'has_chapter'} or $InfosFlag{'has_part'}
3824 7 0 34 $Opts{'target_format'} eq 'epub' and $Param{'epub-version'} =~ /^3/u or $Opts{'target_format'} eq 'xhtml' and $Param{'xhtml5'}
3992 42 0 8 $Count{'part'} || $Count{'chapter'}
4076 21 7 8 $opts->{'mini'} or defined $opts->{'title'}
4105 8 6 72 $macro eq $mini_macro or $macro eq 'Pt'
4192 46 0 120 $opts->{'nonum'} or $href =~ /^index/u and not $Opts{'all_in_one_file'}