Condition Coverage

blib/lib/ExtUtils/XSpp/Node/Function.pm
Criterion Covered Total %
condition 51 62 82.2


and 3 conditions

line !l l&&!r l&&r condition
67 110 3 0 @{$this->catch;} > 1 and grep {$_ eq 'nothing';} @{$$this{'CATCH'};}
162 47 2 2 @{$this->catch;} == 1 and $$this{'CATCH'}[0] eq 'nothing'
167 47 0 2 @_ == 1 and $_[0] eq 'nothing'
47 1 1 @_ == 1 and $_[0] eq 'nothing' and @{$this->catch;}
223 0 24 85 $args and @$args
257 105 1 3 $this->isa('ExtUtils::XSpp::Node::Constructor') and $this->perl_name ne $this->cpp_name
262 3 30 76 $ret_typemap && !$ret_typemap->type->is_void
264 33 75 1 $has_ret && $ret_typemap->output_list('')
267 21 65 2 $has_ret and defined $ret_typemap->call_function_code('', '')
291 33 75 1 $has_ret and defined $ret_typemap->output_code('', '')
295 33 75 1 $has_ret and defined $ret_typemap->output_list('')
307 33 74 2 $has_ret and defined $ret_typemap->cleanup_code('', '')
330 67 41 1 not $this->is_method and $fname =~ /^(.*)::(\w+)$/

or 2 conditions

line l !l condition
47 85 28 $args{'arguments'} || []
171 48 0 $$this{'CATCH'} ||= []
212 84 25 $$this{'ALIAS'} || {}
319 2 0 $output ||= " OUTPUT: RETVAL\n"
322 0 3 $cleanup ||= " CLEANUP:\n"
571 2 123 $_[0]{'STATIC'} || ''
572 0 0 $_[0]{'STATIC'} || ''

or 3 conditions

line l !l&&r !l&&!r condition
46 12 101 0 $args{'perl_name'} || $args{'cpp_name'}
91 9 101 0 $$this{'TYPEMAPS'}{'RET_TYPE'} ||= ExtUtils::XSpp::Typemap::get_typemap_for_type($this->ret_type)
95 9 114 0 $$this{'TYPEMAPS'}{'ARGUMENTS'}[$index++] ||= ExtUtils::XSpp::Typemap::get_typemap_for_type($a->type)