Branch Coverage

blib/lib/JavaScript/Minifier.pm
Criterion Covered Total %
branch 73 82 89.0


line true false branch
47 1289 138 if ($$s{'inputType'} eq 'file') { }
138 0 elsif ($$s{'inputType'} eq 'string') { }
49 1229 60 if defined $char
55 118 20 if ($$s{'inputPos'} < length $$s{'input'}) { }
72 657 86 if (defined $$s{'outfile'}) { }
91 495 80 unless (isWhitespace($$s{'a'}))
144 0 15 if ($$s{'last'} ne $delimiter)
145 0 0 $delimiter eq '"' ? :
0 0 $delimiter eq q['] ? :
158 82 17 if (isEndspace($$s{'a'}) or isEndspace($$s{'b'}))
179 27 16 if (defined $$s{'a'} and isEndspace($$s{'a'}) and defined $$s{'b'} and not isPostfix($$s{'b'}))
203 5 15 if (defined $ref and ref $ref eq 'SCALAR') { }
212 5 15 unless (defined $$s{'outfile'})
217 1 19 if ($$s{'copyright'})
236 0 460 if (isWhitespace($$s{'a'}))
241 95 365 if ($$s{'a'} eq '/') { }
6 359 elsif ($$s{'a'} eq q['] or $$s{'a'} eq '"') { }
31 328 elsif ($$s{'a'} eq '+' or $$s{'a'} eq '-') { }
213 115 elsif (isAlphanum($$s{'a'})) { }
31 84 elsif ($$s{'a'} eq ']' or $$s{'a'} eq '}' or $$s{'a'} eq ')') { }
1 83 elsif ($$s{'stripDebug'} and $$s{'a'} eq ';' and defined $$s{'b'} and $$s{'b'} eq ';' and defined $$s{'c'} and $$s{'c'} eq ';') { }
242 29 66 if (defined $$s{'b'} and $$s{'b'} eq '/') { }
38 28 elsif (defined $$s{'b'} and $$s{'b'} eq '*') { }
19 9 elsif (defined $$s{'lastnws'} and $$s{'lastnws'} eq ')' || $$s{'lastnws'} eq ']' || $$s{'lastnws'} eq '.' || isAlphanum($$s{'lastnws'})) { }
245 68 88 $ccFlag ? :
247 29 0 if (defined $$s{'a'})
248 14 15 if ($ccFlag) { }
8 7 elsif (defined $$s{'last'} and not isEndspace($$s{'last'}) and not isPrefix($$s{'last'})) { }
263 67 198 $ccFlag ? :
265 38 0 if (defined $$s{'b'}) { }
266 15 23 if ($ccFlag) { }
276 4 19 if (defined $$s{'last'} and defined $$s{'b'} and isAlphanum($$s{'last'}) && (isAlphanum($$s{'b'}) || $$s{'b'} eq '.') || $$s{'last'} eq '+' && $$s{'b'} eq '+' || $$s{'last'} eq '-' && $$s{'b'} eq '-') { }
7 12 elsif (defined $$s{'last'} and not isPrefix($$s{'last'})) { }
300 2 17 onWhitespaceConditionalComment($s) ? :
306 2 7 onWhitespaceConditionalComment($s) ? :
316 4 27 if (defined $$s{'a'} and isWhitespace($$s{'a'}))
317 2 2 defined $$s{'b'} && $$s{'b'} eq $$s{'last'} ? :
323 49 164 if (defined $$s{'a'} and isWhitespace($$s{'a'}))
325 17 32 defined $$s{'b'} && (isAlphanum($$s{'b'}) || $$s{'b'} eq '.') ? :
345 2 18 if (defined $$s{'last_read_char'} and $$s{'last_read_char'} =~ /\n/)
349 5 15 if (not defined $$s{'outfile'})