Branch Coverage

blib/lib/ExtUtils/XSpp/Node/Function.pm
Criterion Covered Total %
branch 87 100 87.0


line true false branch
67 0 113 if (@{$this->catch;} > 1 and grep {$_ eq 'nothing';} @{$$this{'CATCH'};})
90 110 3 if ($this->ret_type)
116 92 3 unless (grep {$_ eq 'nothing';} @catch)
119 1 17 if $seen{$catch}++
125 81 11 unless (@exceptions)
162 2 49 if (@{$this->catch;} == 1 and $$this{'CATCH'}[0] eq 'nothing')
167 1 1 if (@_ == 1 and $_[0] eq 'nothing' and @{$this->catch;})
216 0 109 if $this->emit_condition
223 85 24 if ($args and @$args)
224 44 41 $this->is_method ? :
232 4 119 $arg->has_default ? :
236 5 118 defined $call_code ? :
237 3 120 if $pc
245 4 105 if ($has_aliases)
253 106 3 $ret_typemap ? :
257 3 106 if ($this->isa('ExtUtils::XSpp::Node::Constructor') and $this->perl_name ne $this->cpp_name)
264 1 108 $has_ret && $ret_typemap->output_list('') ? :
265 1 108 $ppcode ? :
267 18 91 if ($$this{'CALL_CODE'}) { }
3 88 elsif ($this->isa('ExtUtils::XSpp::Node::Destructor')) { }
2 86 elsif ($has_ret and defined $ret_typemap->call_function_code('', '')) { }
65 21 elsif ($has_ret) { }
0 21 elsif ($has_aliases) { }
275 4 61 if ($has_aliases) { }
286 91 18 if @catchers
287 2 107 if ($precall)
290 91 18 @catchers ? :
291 1 108 if ($has_ret and defined $ret_typemap->output_code('', ''))
295 1 108 if ($has_ret and defined $ret_typemap->output_list(''))
299 91 18 if @catchers
305 76 33 if $has_ret
307 2 107 if ($has_ret and defined $ret_typemap->cleanup_code('', ''))
313 11 98 if ($this->code)
315 4 7 if $code =~ /\bRETVAL\b/
317 3 106 if ($this->postcall)
319 2 1 if $has_ret
321 3 106 if ($this->cleanup)
326 1 108 if ($ppcode)
330 1 108 if (not $this->is_method and $fname =~ /^(.*)::(\w+)$/)
348 3 106 if $this->has_argument_with_length
351 0 109 if $this->emit_condition
381 0 0 $this->const ? :
413 3 120 if $arg->uses_length
460 4 0 $use_retval ? :
544 243 18 $_[0]{'CATCH'} ? :
545 0 0 $_[0]{'ALIAS'} ? :
595 0 1 unless $$this{'TYPEMAPS'}{'RET_TYPE'}
608 0 1 unless $index < @{$$this{'ARGUMENTS'};}
609 0 1 unless $$this{'TYPEMAPS'}{'ARGUMENTS'}
616 0 10 unless $index < @{$$this{'ARGUMENTS'};}