Condition Coverage

blib/lib/JavaScript/Minifier.pm
Criterion Covered Total %
condition 113 141 80.1


and 3 conditions

line !l l&&!r l&&r condition
138 0 93 11 defined $$s{'a'} and $$s{'a'} eq '\\'
156 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'})
169 14 227 193 defined $$s{'a'} and isWhitespace($$s{'a'})
179 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'})
187 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 '@'
203 0 15 5 defined $ref and ref $ref eq 'SCALAR'
222 0 20 5 defined $$s{'a'} and isWhitespace($$s{'a'})
241 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 ';'
242 0 66 29 defined $$s{'b'} and $$s{'b'} eq '/'
0 28 38 defined $$s{'b'} and $$s{'b'} eq '*'
0 28 0 defined $$s{'lastnws'} and $$s{'lastnws'} eq ')' || $$s{'lastnws'} eq ']' || $$s{'lastnws'} eq '.' || isAlphanum($$s{'lastnws'})
243 0 15 14 defined $$s{'c'} && $$s{'c'} eq '@'
248 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'})
261 0 23 15 defined $$s{'c'} && $$s{'c'} eq '@'
262 185 42 38 $$s{'a'} eq '*' and $$s{'b'} eq '/'
276 1 0 22 defined $$s{'last'} and defined $$s{'b'}
1 22 0 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'})
316 1 26 4 defined $$s{'a'} and isWhitespace($$s{'a'})
317 0 2 2 defined $$s{'b'} && $$s{'b'} eq $$s{'last'}
323 5 159 49 defined $$s{'a'} and isWhitespace($$s{'a'})
325 0 49 0 defined $$s{'b'} && (isAlphanum($$s{'b'}) || $$s{'b'} eq '.')
345 0 18 2 defined $$s{'last_read_char'} and $$s{'last_read_char'} =~ /\n/

or 3 conditions

line l !l&&r !l&&!r condition
14 254 0 178 $_[0] =~ /[\w\$\\]/ || ord $_[0] > 126
18 155 0 272 $_[0] eq "\n" || $_[0] eq "\r" || $_[0] eq "\f"
22 279 0 1805 $_[0] eq ' ' || $_[0] eq "\t" || $_[0] eq "\n" || $_[0] eq "\r" || $_[0] eq "\f"
34 0 16 15 $_[0] =~ /[\{\(\[!]/ || isInfix($_[0])
39 14 0 27 $_[0] =~ /[\}\)\]]/ || isInfix($_[0])
137 15 0 78 $$s{'last'} eq $delimiter or not defined $$s{'a'}
158 62 20 17 isEndspace($$s{'a'}) or isEndspace($$s{'b'})
241 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 ')'
242 1 18 9 $$s{'lastnws'} eq ')' || $$s{'lastnws'} eq ']' || $$s{'lastnws'} eq '.' || isAlphanum($$s{'lastnws'})
244 0 29 127 not defined $$s{'a'} or isEndspace($$s{'a'})
262 0 0 265 not defined $$s{'b'} or $$s{'a'} eq '*' and $$s{'b'} eq '/'
276 1 0 19 isAlphanum($$s{'last'}) && (isAlphanum($$s{'b'}) || $$s{'b'} eq '.') || $$s{'last'} eq '+' && $$s{'b'} eq '+' || $$s{'last'} eq '-' && $$s{'b'} eq '-'