Condition Coverage

blib/lib/JavaScript/Minifier.pm
Criterion Covered Total %
condition 131 162 80.8


and 3 conditions

line !l l&&!r l&&r condition
141 0 93 11 defined $s->{'a'} and $s->{'a'} eq '\\'
145 32 61 0 $s->{'regexp_flag'} and $s->{'a'} eq '['
32 61 0 $s->{'regexp_flag'} and $s->{'a'} eq ']'
152 6 9 0 $s->{'regexp_flag'} && $s->{'charclass_flag'}
78 0 15 $s->{'last'} eq $delimiter and not $s->{'regexp_flag'} && $s->{'charclass_flag'}
165 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'})
178 14 227 193 defined $s->{'a'} and isWhitespace($s->{'a'})
188 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'})
199 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 '@'
212 0 15 5 defined $ref and ref $ref eq 'SCALAR'
233 0 20 5 defined $s->{'a'} and isWhitespace($s->{'a'})
255 0 347 18 defined $return[length $s->{'return_string'}] && $s->{'a'} eq $return[length $s->{'return_string'}]
260 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 ';'
261 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
262 0 15 14 defined $s->{'c'} && $s->{'c'} eq '@'
267 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'})
280 0 23 15 defined $s->{'c'} && $s->{'c'} eq '@'
283 185 42 38 $s->{'a'} eq '*' and $s->{'b'} eq '/'
295 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'})
338 1 26 4 defined $s->{'a'} and isWhitespace($s->{'a'})
339 0 2 2 defined $s->{'b'} && $s->{'b'} eq $s->{'last'}
345 5 159 49 defined $s->{'a'} and isWhitespace($s->{'a'})
347 0 32 17 defined $s->{'b'} && (isAlphanum($s->{'b'}) || $s->{'b'} eq '.')
367 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])
152 15 0 78 $s->{'last'} eq $delimiter and not $s->{'regexp_flag'} && $s->{'charclass_flag'} or not defined $s->{'a'}
167 62 20 17 isEndspace($s->{'a'}) or isEndspace($s->{'b'})
260 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 ')'
261 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
265 0 29 127 not defined $s->{'a'} or isEndspace($s->{'a'})
283 0 143 122 not defined $s->{'b'} or $s->{'a'} eq '*' and $s->{'b'} eq '/'
295 1 1 18 isAlphanum($s->{'last'}) && (isAlphanum($s->{'b'}) || $s->{'b'} eq '.') || $s->{'last'} eq '+' && $s->{'b'} eq '+' || $s->{'last'} eq '-' && $s->{'b'} eq '-'