Branch Coverage

blib/lib/LaTeX/Recode.pm
Criterion Covered Total %
branch 46 70 65.7


line true false branch
23 2 0 ($opts{'encode_set'} || '') =~ /$sets/i ? :
24 2 0 ($opts{'decode_set'} || '') =~ /$sets/i ? :
98 0 4 unless $text =~ /\\/
101 0 4 if $set_d eq 'null'
104 0 4 exists $opts{'normalize'} ? :
106 0 4 exists $opts{'normalization'} ? :
126 0 36 unless $re
128 4 32 if ($type eq 'negatedsymbols') { }
4 28 elsif ($type eq 'superscripts') { }
4 24 elsif ($type eq 'cmdsuperscripts') { }
4 20 elsif ($type eq 'dings') { }
4 16 elsif ($type eq 'letters') { }
12 4 elsif (&first(sub { $type eq $_; } , 'punctuation', 'symbols', 'greek')) { }
4 0 elsif ($type eq 'diacritics') { }
200 4 0 $norm ? :
214 0 4 if $set_e eq 'null'
225 0 36 unless $re
227 4 32 if ($type eq 'negatedsymbols') { }
4 28 elsif ($type eq 'superscripts') { }
4 24 elsif ($type eq 'cmdsuperscripts') { }
4 20 elsif ($type eq 'dings') { }
4 16 elsif ($type eq 'letters') { }
12 4 elsif (&first(sub { $type eq $_; } , 'punctuation', 'symbols', 'greek')) { }
4 0 elsif ($type eq 'diacritics') { }
243 0 1 $LaTeX::Recode::remap_e_raw->{$1} ? :
0 1 $LaTeX::Recode::remap_e_raw->{$1} ? :
249 0 0 $LaTeX::Recode::remap_e_raw->{$1} ? :
0 0 $LaTeX::Recode::remap_e_raw->{$1} ? :
302 0 2 unless my $xml = File::Slurp::read_file($mapdata)
317 0 20 unless &first(sub { $set_d eq $_; } , @set)
336 0 20 unless &first(sub { $set_e eq $_; } , @set)
372 0 18 unless exists $our $remap_d{$type}
374 14 1636 /[\.\^\|\+\-\)\(]/ ? :
382 0 18 unless exists $our $remap_e{$type}
384 0 1528 /[\.\^\|\+\-\)\(]/ ? :