Branch Coverage

blib/lib/Parse/KeyValue/Shellish/Parser.pm
Criterion Covered Total %
branch 44 46 95.6


line true false branch
27 30 180 if ($ch eq '=')
28 1 29 if ($$self{'key'})
37 18 162 if ($ch =~ /\s/)
38 3 15 if ($$self{'escaped'})
44 13 2 if ($$self{'key'})
52 11 151 if ($ch eq q['] or $ch eq '"')
57 6 145 if ($ch eq '(' and not $$self{'escaped'})
62 2 143 if ($ch eq ')' and not $$self{'escaped'})
66 9 134 if ($ch eq '\\')
67 2 7 if ($$self{'escaped'})
80 6 1 if ($$self{'key'} and $value)
81 0 6 if $$self{'escaped'}
98 11 48 if ($ch eq $quote and not $$self{'escaped'})
103 3 45 if ($ch eq '\\')
104 2 1 if ($quote eq q['])
116 3 11 unless $balanced
132 1 21 if ($ch eq '(')
136 4 17 if ($ch eq ')')
141 4 13 if ($ch =~ /\s/)
147 3 10 if ($ch eq q['] or $ch eq '"')
155 3 2 if ($$self{'key'} and $value)
156 0 3 if $$self{'escaped'}
161 1 4 unless $balanced