Branch Coverage

blib/lib/JavaScript/Minifier.pm
Criterion Covered Total %
branch 79 90 87.7


line true false branch
50 1289 138 if ($s->{'inputType'} eq 'file') { }
138 0 elsif ($s->{'inputType'} eq 'string') { }
52 1229 60 if defined $char
58 118 20 if ($s->{'inputPos'} < length $s->{'input'}) { }
75 657 86 if (defined $s->{'outfile'}) { }
94 495 80 unless (isWhitespace($s->{'a'}))
145 0 93 if ($s->{'regexp_flag'} and $s->{'a'} eq '[') { }
0 125 elsif ($s->{'regexp_flag'} and $s->{'a'} eq ']') { }
153 0 15 if ($s->{'last'} ne $delimiter)
154 0 0 $delimiter eq '"' ? :
0 0 $delimiter eq q['] ? :
167 82 17 if (isEndspace($s->{'a'}) or isEndspace($s->{'b'}))
188 27 16 if (defined $s->{'a'} and isEndspace($s->{'a'}) and defined $s->{'b'} and not isPostfix($s->{'b'}))
212 5 15 if (defined $ref and ref $ref eq 'SCALAR') { }
221 5 15 unless (defined $s->{'outfile'})
226 1 19 if ($s->{'copyright'})
249 0 460 if (isWhitespace($s->{'a'}))
254 365 95 if ($s->{'a'} ne '/')
256 18 347 $s->{'return_flag'} ? :
260 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 ';') { }
261 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'}) and !$s->{'return_flag'} || length $s->{'return_string'} != scalar @return) { }
264 68 88 $ccFlag ? :
266 29 0 if (defined $s->{'a'})
267 14 15 if ($ccFlag) { }
8 7 elsif (defined $s->{'last'} and not isEndspace($s->{'last'}) and not isPrefix($s->{'last'})) { }
282 67 198 $ccFlag ? :
284 38 0 if (defined $s->{'b'}) { }
285 15 23 if ($ccFlag) { }
295 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'})) { }
320 2 17 onWhitespaceConditionalComment($s) ? :
327 2 7 onWhitespaceConditionalComment($s) ? :
338 4 27 if (defined $s->{'a'} and isWhitespace($s->{'a'}))
339 2 2 defined $s->{'b'} && $s->{'b'} eq $s->{'last'} ? :
345 49 164 if (defined $s->{'a'} and isWhitespace($s->{'a'}))
347 17 32 defined $s->{'b'} && (isAlphanum($s->{'b'}) || $s->{'b'} eq '.') ? :
367 2 18 if (defined $s->{'last_read_char'} and $s->{'last_read_char'} =~ /\n/)
371 5 15 if (not defined $s->{'outfile'})