Branch Coverage

blib/lib/InlineX/CPP2XS.pm
Criterion Covered Total %
branch 155 202 76.7


line true false branch
28 0 19 if ($@ or $Inline::CPP::VERSION < 0.39)
37 18 1 if (@_)
38 6 12 if (ref $_[0] eq 'HASH') { }
40 1 5 if (@_)
45 11 7 if (@_)
46 1 10 if (ref $_[0] ne 'HASH')
50 1 16 unless (-d $build_dir)
54 6 10 $$config_options{'AUTOWRAP'} ? :
58 1 15 if (exists $$config_options{'CODE'} and exists $$config_options{'SRC_LOCATION'})
62 0 15 if (exists $$config_options{'BOOT'} and exists $$config_options{'BOOT_F'})
66 2 13 if (exists $$config_options{'CODE'}) { }
5 8 elsif (exists $$config_options{'SRC_LOCATION'}) { }
68 0 2 if ($code =~ /inline_stack_vars/i)
71 1 4 unless open RD, '<', $$config_options{'SRC_LOCATION'}
74 0 490 if ($_ =~ /inline_stack_vars/i)
76 0 4 unless close RD
79 0 8 unless open RD, '<', "src/$modfname.cpp"
82 3 85 if ($_ =~ /inline_stack_vars/i)
84 0 8 unless close RD
133 1 65 unless _check_config_keys($_)
135 1 12 if (exists $$config_options{'BUILD_NOISY'})
137 1 12 if ($$config_options{'DIST'})
143 6 7 if ($$config_options{'AUTOWRAP'})
145 1 12 if ($$config_options{'BOOT'})
147 0 13 if ($$config_options{'BOOT_F'})
149 0 0 unless open RD, '<', $$config_options{'BOOT_F'}
152 0 0 if ($_ =~ /inline_stack_vars/i)
154 0 0 unless close RD
160 1 12 if ($$config_options{'MAKE'})
162 7 6 if (exists $$config_options{'TYPEMAPS'}) { }
163 5 2 if (ref $$config_options{'TYPEMAPS'} eq 'ARRAY') { }
165 1 4 unless -f $_
172 0 2 unless -f $_
184 1 11 if ($$config_options{'PREFIX'})
190 1 11 if ($$config_options{'LIBS'})
193 1 0 if (ref $$o{'ILSM'}{'MAKEFILE'}{'LIBS'} eq 'ARRAY') { }
201 1 0 if (ref $$config_options{'LIBS'} eq 'ARRAY') { }
212 2 10 if ($$config_options{'PRE_HEAD'})
216 1 1 if (not -f $v) { }
221 0 1 unless open RD, '<', $v
223 0 1 unless close RD
229 6 6 if ($$config_options{'AUTO_INCLUDE'})
231 1 11 if ($$config_options{'CC'})
233 1 11 if ($$config_options{'CCFLAGS'})
235 0 12 if ($$config_options{'CCFLAGSEX'})
238 6 6 if (exists $$config_options{'INC'}) { }
239 0 6 if (ref $$config_options{'INC'} eq 'ARRAY') { }
246 1 11 if ($$config_options{'LD'})
248 1 11 if ($$config_options{'PREREQ_PM'})
250 1 11 if ($$config_options{'LDDLFLAGS'})
254 1 11 if ($$config_options{'MAKE'})
256 1 11 if ($$config_options{'MYEXTLIB'})
258 1 11 if ($$config_options{'OPTIMIZE'})
260 0 12 if ($$config_options{'USING'})
262 0 0 if (ref $val eq 'ARRAY') { }
271 5 7 unless ($need_inline_h)
276 1 11 uc $$config_options{'WRITE_MAKEFILE_PL'} eq 'P' ? :
281 4 8 if ($$config_options{'WRITE_MAKEFILE_PL'})
284 4 0 if ($$config_options{'VERSION'}) { }
288 1 3 if (uc $$config_options{'WRITE_MAKEFILE_PL'} eq 'P')
293 4 8 if ($$config_options{'WRITE_PM'})
294 4 0 if ($$config_options{'VERSION'}) { }
302 2 10 if ($$config_options{'MANIF'})
322 1 11 if ($portable)
325 0 1 unless open WRA, '>', "$build_dir/auto_include.in"
327 2 16 if $l =~ /__INLINE_CPP_STANDARD_HEADERS/ or $l =~ /__INLINE_CPP_NAMESPACE_STD/
330 0 1 unless close WRA
338 1 11 if $portable
340 7 5 if ($need_inline_headers)
351 65 848 if $_ eq $_[0]
365 2 2 if ($$config_options{'USE'})
366 0 2 if ref $$config_options{'USE'} ne 'ARRAY'
371 0 4 unless open WR, '>', $$o{'API'}{'build_dir'} . '/' . $$o{'API'}{'modfname'} . '.pm'
386 3 1 if (not $$config_options{'EXPORT_ALL'}) { }
393 4 4 if ($_ =~ /^_/ and not $_ =~ /^__/)
395 0 4 if ($length + $l > $max)
399 1 3 if ($length == $offset) { }
407 1 3 if (not $$config_options{'EXPORT_OK_ALL'} || $$config_options{'EXPORT_TAGS_ALL'}) { }
414 24 6 if ($_ =~ /^_/ and not $_ =~ /^__/)
416 0 6 if ($length + $l > $max)
420 3 3 if ($length == $offset) { }
428 1 3 if ($$config_options{'EXPORT_TAGS_ALL'})
432 4 4 if ($_ =~ /^_/ and not $_ =~ /^__/)
434 0 4 if ($length + $l > $max)
438 1 3 if ($length == $offset) { }
448 0 4 unless close WR
460 0 1 unless rename "$bd/Makefile.PL", "$bd/Makefile.PL_first"
474 0 1 unless open WRT, '>', "$bd/ilcpptest.cpp"
476 0 1 unless close WRT
479 0 1 unless open RD, '<', "$bd/Makefile.PL_first"
480 0 1 unless open WR, '>', "$bd/Makefile.PL"
627 0 19 if ($_ =~ /'LIBS' => '/)
633 1 18 if ($_ =~ /'CC' =>/)
637 0 1 unless close RD
638 0 1 unless close WR
639 0 1 unless unlink "$bd/Makefile.PL_first"
652 0 2 unless open WRM, '>', "$bd/MANIFEST"
654 2 0 if ($$c{'WRITE_PM'})
655 0 2 if ($ih)
657 2 0 if ($$c{'WRITE_MAKEFILE_PL'})
659 1 1 if (uc $$c{'WRITE_MAKEFILE_PL'} eq 'P')