Branch Coverage

lib/Acme/Syntax/Python.pm
Criterion Covered Total %
branch 40 42 95.2


line true false branch
46 6 79 if ($status <= 0)
47 1 5 if ($$self{'_in_block'})
55 38 41 if ($$self{'_in_block'})
67 0 79 if (/class (.+) inherits (.+):/)
72 2 77 if (/class (.+):/)
78 1 78 if (/lambda\((.+)\):/)
84 1 78 if (/lambda:/)
90 7 72 if (/def (.+)\((.+)\):/)
91 1 6 if ($1 eq '__init__') { }
101 3 76 if (/def (.+):/)
102 1 2 if ($1 eq '__init__') { }
113 2 77 if (/elif (.+)/) { }
4 73 elsif (/if (.*)/) { }
119 4 75 if (/\):$/)
123 2 77 if (/else:/)
128 0 79 if ($$self{'_debug'})
144 2 18 if (defined $type)
153 19 19 if ($depth < 4 * $$self{'_block_depth'})
155 2 17 if ($$self{'_lambda_block'}{$$self{'_block_depth'}}) { }
2 15 elsif ($$self{'_class_block'}{$$self{'_block_depth'}}) { }
167 8 30 if ($$self{'_block_depth'} == 0)