Branch Coverage

blib/lib/Language/P/Assembly.pm
Criterion Covered Total %
branch 29 40 72.5


line true false branch
68 0 0 @parameters ? :
76 819 1012 @parameters ? :
84 0 0 %attributes ? :
92 1480 78 %attributes ? :
118 484 539 if (blessed $arg)
119 229 255 if $arg->isa('Language::P::Intermediate::BasicBlock')
121 250 5 if $arg->isa('Language::P::Assembly::Instruction')
123 3 2 if $arg->isa('Language::P::ParseTree::LexicalDeclaration')
125 2 0 if $arg->isa('Language::P::Intermediate::Code')
128 233 0 if ($$self{'opcode_n'} and defined $index and $attributes and my $positional = $$attributes{$$self{'opcode_n'}}{'positional'})
132 12 221 if ($type and $type eq 's')
145 0 1006 if defined $$self{'literal'}
147 208 798 defined $$self{'label'} ? :
149 208 798 unless defined $$self{'opcode'} or defined $$self{'opcode_n'}
153 0 798 if (defined $$self{'opcode'}) { }
798 0 elsif (defined $$self{'opcode_n'}) { }
159 236 562 if ($$self{'attributes'})
160 0 236 unless %{$$self{'attributes'};}
166 441 357 if ($$self{'parameters'})
167 0 441 unless @{$$self{'parameters'};}