Branch Coverage

blib/lib/JavaScript/Minifier.pm
Criterion Covered Total %
branch 77 86 89.5


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'}))
147 0 15 if ($s->{'last'} ne $delimiter)
148 0 0 $delimiter eq '"' ? :
0 0 $delimiter eq q['] ? :
161 82 17 if (isEndspace($s->{'a'}) or isEndspace($s->{'b'}))
182 27 16 if (defined $s->{'a'} and isEndspace($s->{'a'}) and defined $s->{'b'} and not isPostfix($s->{'b'}))
206 5 15 if (defined $ref and ref $ref eq 'SCALAR') { }
215 5 15 unless (defined $s->{'outfile'})
220 1 19 if ($s->{'copyright'})
241 0 460 if (isWhitespace($s->{'a'}))
246 365 95 if ($s->{'a'} ne '/')
248 18 347 $s->{'return_flag'} ? :
252 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 ';') { }
253 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) { }
256 68 88 $ccFlag ? :
258 29 0 if (defined $s->{'a'})
259 14 15 if ($ccFlag) { }
8 7 elsif (defined $s->{'last'} and not isEndspace($s->{'last'}) and not isPrefix($s->{'last'})) { }
274 67 198 $ccFlag ? :
276 38 0 if (defined $s->{'b'}) { }
277 15 23 if ($ccFlag) { }
287 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'})) { }
312 2 17 onWhitespaceConditionalComment($s) ? :
318 2 7 onWhitespaceConditionalComment($s) ? :
328 4 27 if (defined $s->{'a'} and isWhitespace($s->{'a'}))
329 2 2 defined $s->{'b'} && $s->{'b'} eq $s->{'last'} ? :
335 49 164 if (defined $s->{'a'} and isWhitespace($s->{'a'}))
337 17 32 defined $s->{'b'} && (isAlphanum($s->{'b'}) || $s->{'b'} eq '.') ? :
357 2 18 if (defined $s->{'last_read_char'} and $s->{'last_read_char'} =~ /\n/)
361 5 15 if (not defined $s->{'outfile'})