Branch Coverage

blib/lib/TeX/Encode.pm
Criterion Covered Total %
branch 55 82 67.0


line true false branch
33 0 16 unless defined $check
34 14 2 if ($check eq 0 or $check eq '') { }
1 1 elsif ($check eq 1) { }
1 0 elsif ($check eq 4) { }
0 0 elsif ($check eq 6) { }
62 14 33 if pos $_ == length $_
65 9 24 if /\G($TeX::Encode::charmap::RESERVED_RE)/cg
68 9 15 if (/\G($TeX::Encode::charmap::CHAR_MAP_RE)/cg)
71 2 7 if (/\G[a-zA-Z_]/cg)
74 2 0 if $tex =~ /[a-zA-Z_]$/
80 12 3 if m[\G([\sa-zA-Z0-9\.,:;'"\(\)=/]+)]cg
83 3 0 if /\G(.)/cg
89 1 14 if ($bad_cp)
120 0 238 if /\G\%([^\n]+\n)?/cg
123 9 229 if /\G\$/cg
124 156 73 if /\G($TeX::Encode::charmap::MACROS_RE)/cg
125 1 72 if /\G\\(.)/cg
126 10 62 if /\G\{/cg
127 0 62 if /\G\[/cg
128 2 60 if /\G_/cg
129 3 57 if /\G\^/cg
130 27 30 if /\G([^_\^\%\$\\\{\[ \t\n\r]+)/cg
131 30 0 if /\G([ \t\n\r])+/cg
142 2 0 if $tex =~ /[^0-9+\-]/
149 0 3 if $tex =~ /[^0-9+\-]/
195 0 30 if pos $_ == length $_
197 8 22 if /\G(\\.)/cg
198 9 13 if /\G\$/cg
199 0 13 if /\G($TeX::Encode::charmap::MATH_CHARS_RE)/cg
200 13 0 if /\G([^\\\$]+)/cg
219 0 1 if /\G\{/
234 0 0 if pos $_ == length $_ or $depth == 0
236 0 0 if /\G(\\.)/cg
237 0 0 if /\G\[/cg
238 0 0 if /\G\]/cg
239 0 0 if /\G([^\\\[\]]+)/cg
256 10 15 if pos $_ == length $_ or $depth == 0
258 1 14 if /\G(\\.)/cg
259 10 4 if /\G\}/cg
260 0 4 if /\G\{/cg
261 4 0 if /\G([^\\\{\}]+)/cg