Condition Coverage

File:blib/lib/ExtUtils/ParseXS.pm
Coverage:51.5%

line%coveragecondition
183100
ABdec
000
011
1X1
/^$/ or /^#/
38367
ABdec
0X0
100
111
@line and not $line[0] =~ /^[^\#]/
4080
ABdec
0X0
100
111
--$XSS_work_idx and $XSStack[$XSS_work_idx]{'type'} ne 'if'
41933
ABdec
0X0
100
111
$XSS_work_idx and not $XSStack[$XSS_work_idx]{'varname'}
4670
ABdec
0X0
100
111
$WantLineNumbers and not $line[0] =~ /^\s*#\s*line\b/
47933
ABdec
0X0
100
111
$process_argtypes and $ret_type =~ s/^(.*?\w.*?)\s*\b(\w+\s*\(.*)/$1/s
51967
ABdec
0X0
100
111
$process_argtypes and $orig_args =~ /\S/
530100
ABdec
0X0
100
111
defined $pre and length $pre
53333
ABdec
0X0
100
111
$process_inout and s/^(IN|IN_OUTLIST|OUTLIST|OUT|IN_OUT)\s+//
54633
ABdec
000
011
1X1
length $pre or $islength
55733
ABdec
000
011
1X1
$out_type eq 'OUTLIST' or $islength
5700
ABdec
0X0
100
111
$process_inout and s/^(IN|IN_OUTLIST|OUTLIST|IN_OUT|OUT)\s+//
58167
ABdec
000
011
1X1
defined $static || $func_name eq 'new'
59233
ABdec
0X0
100
111
$args[$i] eq '' and $i == $#args
62967
ABdec
0X0
100
111
$CODE && "@line" =~ /(\bST\s*\([^;]*=) | (\bXST_m\w+\s*\()/x
72667
ABdec
0X0
100
111
not $thisdone and defined $class
72767
ABdec
000
011
1X1
defined $static or $func_name eq 'new'
75067
ABdec
0X0
100
111
$WantOptimize and $targetable{$type_kind{$ret_type}}
75467
ABdec
000
011
1X1
@fake_INPUT or @fake_INPUT_pre
764100
ABdec
0X0
100
111
defined $class and $func_name eq 'DESTROY'
818100
ABdec
000
011
1X1
$gotRETVAL or $wantRETVAL
67
ABdec
0X0
100
111
$gotRETVAL and $RETVAL_code
82267
ABdec
0X0
100
111
$WantOptimize && $targetable{$type_kind{$ret_type}}
82775
ABCdec
0XX0
10X0
1100
1111
$t and not $$t[1] and $$t[0] eq 'p'
85533
ABdec
0X0
100
111
$c and not $prepush_done
86633
ABdec
0X0
100
111
$ScopeThisXSUB and not $PPCODE
103967
ABdec
000
011
1X1
defined $XsubAliases or defined $Interfaces
105967
ABdec
000
011
1X1
defined $XsubAliases or defined $Interfaces
113767
ABdec
0X0
100
111
not /\S/ and @line
114333
ABdec
0X0
100
111
not /\S/ and @line
114525
ABCdec
0XX0
10X0
1100
1111
$WantLineNumbers and not /^\s*#\s*line\b/ and not /^#if XSubPPtmp/
114767
ABdec
0X0
100
111
defined $_ and not /^$BLOCK_re/o
115667
ABdec
0X0
100
111
not /\S/ and @line
116067
ABdec
0X0
100
111
defined $_ and not /^$BLOCK_re/o
11770
ABdec
0X0
100
111
$condnum and $cond eq ''
121450
ABCdec
00X0
0100
0111
1XX1
$arg_list{$var_name}++ or defined $argtype_seen{$var_name} and not $processing_arg_with_types
123920
ABCDdec
00XX0
010X0
01100
01111
1XXX1
$var_init =~ /^[=;]\s*NO_INIT\s*;?\s*$/ or $in_out{$var_name} and $in_out{$var_name} =~ /^OUT/ and not $var_init =~ /\S/
127333
ABdec
0X0
100
111
not $gotRETVAL and $outarg eq 'RETVAL'
12910
ABdec
0X0
100
111
exists $in_out{$outarg} and $in_out{$outarg} =~ /OUT$/
15930
ABdec
0X0
100
111
$isPipe and $?
166567
ABdec
0X0
100
111
not defined $lastline and $XSStack[-1]{'type'} eq 'if'
169533
ABdec
000
011
1X1
not $lastline =~ /^\s*#/ or $lastline =~ /^#[ \t]*(?:(?:if|ifn?def|elif|else|endif|define|undef|pragma|error|warning|line\s+\d+|ident)\b|(?:include(?:_next)?|import)\s*["<].*[>"])/
1703100
ABCdec
0XX0
10X0
1100
1111
$lastline =~ /^\S/ and @line and $line[-1] eq ''
171233
ABdec
0X0
100
111
$lastline =~ /\\$/ and defined($tmp_line = <$FH>)
1718100
ABdec
0X0
100
111
@line and $line[-1] eq ''
17380
ABdec
0X0
100
111
$init =~ s/^\+// and $num
178767
ABdec
0X0
100
111
$tk eq 'T_PV' and exists $lengthof{$var}
181567
ABdec
000
011
1X1
$ScopeThisXSUB or not $expr =~ /^\s*\$var =/
193833
ABdec
0X0
100
111
$varname and $type =~ / \( \s* \* (?= \s* \) ) /gx