Condition Coverage

blib/lib/JavaScript/Minifier.pm
Criterion Covered Total %
condition 123 150 82.0


and 3 conditions

line !l l&&!r l&&r condition
141 0 93 11 defined $s->{'a'} and $s->{'a'} eq '\\'
159 10 223 286 defined $s->{'a'} and isWhitespace($s->{'a'})
233 4 282 defined $s->{'a'} and isWhitespace($s->{'a'}) and defined $s->{'b'}
227 183 99 defined $s->{'a'} and isWhitespace($s->{'a'}) and defined $s->{'b'} and isWhitespace($s->{'b'})
172 14 227 193 defined $s->{'a'} and isWhitespace($s->{'a'})
182 4 78 43 defined $s->{'a'} and isEndspace($s->{'a'})
82 2 41 defined $s->{'a'} and isEndspace($s->{'a'}) and defined $s->{'b'}
80 14 27 defined $s->{'a'} and isEndspace($s->{'a'}) and defined $s->{'b'} and not isPostfix($s->{'b'})
193 0 4 4 defined $s->{'a'} && isWhitespace($s->{'a'}) && defined $s->{'b'} && $s->{'b'} eq '/' && defined $s->{'c'} && ($s->{'c'} eq '/' || $s->{'c'} eq '*') && defined $s->{'d'} && $s->{'d'} eq '@'
206 0 15 5 defined $ref and ref $ref eq 'SCALAR'
227 0 20 5 defined $s->{'a'} and isWhitespace($s->{'a'})
247 0 347 18 defined $return[length $s->{'return_string'}] && $s->{'a'} eq $return[length $s->{'return_string'}]
252 79 2 3 $s->{'stripDebug'} and $s->{'a'} eq ';'
81 1 2 $s->{'stripDebug'} and $s->{'a'} eq ';' and defined $s->{'b'}
3 1 1 $s->{'stripDebug'} and $s->{'a'} eq ';' and defined $s->{'b'} and $s->{'b'} eq ';'
2 0 1 $s->{'stripDebug'} and $s->{'a'} eq ';' and defined $s->{'b'} and $s->{'b'} eq ';' and defined $s->{'c'}
1 0 1 $s->{'stripDebug'} and $s->{'a'} eq ';' and defined $s->{'b'} and $s->{'b'} eq ';' and defined $s->{'c'} and $s->{'c'} eq ';'
253 0 66 29 defined $s->{'b'} and $s->{'b'} eq '/'
0 28 38 defined $s->{'b'} and $s->{'b'} eq '*'
0 9 19 defined $s->{'lastnws'} and $s->{'lastnws'} eq ')' || $s->{'lastnws'} eq ']' || $s->{'lastnws'} eq '.' || isAlphanum($s->{'lastnws'})
9 19 0 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
254 0 15 14 defined $s->{'c'} && $s->{'c'} eq '@'
259 1 1 13 defined $s->{'last'} and not isEndspace($s->{'last'})
2 5 8 defined $s->{'last'} and not isEndspace($s->{'last'}) and not isPrefix($s->{'last'})
272 0 23 15 defined $s->{'c'} && $s->{'c'} eq '@'
275 185 42 38 $s->{'a'} eq '*' and $s->{'b'} eq '/'
287 1 0 22 defined $s->{'last'} and defined $s->{'b'}
1 18 4 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 '-'
1 11 7 defined $s->{'last'} and not isPrefix($s->{'last'})
328 1 26 4 defined $s->{'a'} and isWhitespace($s->{'a'})
329 0 2 2 defined $s->{'b'} && $s->{'b'} eq $s->{'last'}
335 5 159 49 defined $s->{'a'} and isWhitespace($s->{'a'})
337 0 32 17 defined $s->{'b'} && (isAlphanum($s->{'b'}) || $s->{'b'} eq '.')
357 0 18 2 defined $s->{'last_read_char'} and $s->{'last_read_char'} =~ /\n/

or 3 conditions

line l !l&&r !l&&!r condition
17 254 0 178 $_[0] =~ /[\w\$\\]/ || ord $_[0] > 126
21 155 0 272 $_[0] eq "\n" || $_[0] eq "\r" || $_[0] eq "\f"
25 279 0 1805 $_[0] eq ' ' || $_[0] eq "\t" || $_[0] eq "\n" || $_[0] eq "\r" || $_[0] eq "\f"
37 0 16 15 $_[0] =~ /[\{\(\[!]/ || isInfix($_[0])
42 14 0 27 $_[0] =~ /[\}\)\]]/ || isInfix($_[0])
146 15 0 78 $s->{'last'} eq $delimiter or not defined $s->{'a'}
161 62 20 17 isEndspace($s->{'a'}) or isEndspace($s->{'b'})
252 1 5 359 $s->{'a'} eq q['] or $s->{'a'} eq '"'
15 16 328 $s->{'a'} eq '+' or $s->{'a'} eq '-'
7 10 98 $s->{'a'} eq ']' or $s->{'a'} eq '}'
17 14 84 $s->{'a'} eq ']' or $s->{'a'} eq '}' or $s->{'a'} eq ')'
253 1 18 9 $s->{'lastnws'} eq ')' || $s->{'lastnws'} eq ']' || $s->{'lastnws'} eq '.' || isAlphanum($s->{'lastnws'})
19 0 0 !$s->{'return_flag'} || length $s->{'return_string'} != scalar @return
257 0 29 127 not defined $s->{'a'} or isEndspace($s->{'a'})
275 0 143 122 not defined $s->{'b'} or $s->{'a'} eq '*' and $s->{'b'} eq '/'
287 1 1 18 isAlphanum($s->{'last'}) && (isAlphanum($s->{'b'}) || $s->{'b'} eq '.') || $s->{'last'} eq '+' && $s->{'b'} eq '+' || $s->{'last'} eq '-' && $s->{'b'} eq '-'