Branch Coverage

blib/lib/SPVM/Builder/CC.pm
Criterion Covered Total %
branch 78 124 62.9


line true false branch
25 0 717 if (@_) { }
36 3 1024 if (@_) { }
47 4 611 if (@_) { }
58 4 602 if (@_) { }
69 2 871 if (@_) { }
87 0 845 if (defined $env_spvm_cc_debug)
92 0 845 if (defined $env_spvm_cc_quiet)
97 0 845 if (defined $env_spvm_cc_force)
132 3 1018 if (defined $self->force) { }
3 1015 elsif (defined $config and defined $config->force) { }
150 2 608 if (defined $self->debug) { }
3 605 elsif (defined $self->quiet) { }
3 602 elsif (defined $config and defined $config->quiet) { }
521 81 elsif ($self->at_runtime) { }
188 0 317 unless (-f $spvm_precompile_soruce_file)
198 247 70 if ($need_generate)
200 0 247 unless open my $fh, ">", $source_file
221 78 261 unless ($quiet)
225 0 339 unless $cbuilder->do_system(@$cc_cmd)
239 354 0 if (defined $build_dir) { }
251 0 354 unless (defined $output_dir and -d $output_dir)
265 344 10 unless ($ignore_native_module)
268 0 344 unless (defined $native_module_ext)
274 0 344 unless (-f $native_class_file)
283 37 317 if (defined $native_src_dir)
294 10 372 unless defined $source_file
299 344 28 if ($current_is_native_module) { }
324 33 339 if (defined $native_include_dir and -d $native_include_dir)
329 83 45 if (-f $include_file_name)
339 55 317 if (defined $config->file)
342 344 28 if ($current_is_native_module)
369 284 88 if ($need_generate)
418 0 3 if (ref $lib) { }
430 0 3 if ($is_abs)
436 0 0 unless ($static)
440 0 0 if (-f $dynamic_lib_file)
449 0 0 if (-f $static_lib_file)
455 0 0 if (defined $found_lib_file)
471 10 0 if (defined $resource_include_dir)
490 10 0 if (ref $resource) { }
516 341 2 unless (defined $output_file)
519 0 341 unless (defined $output_dir and -d $output_dir)
530 343 0 if ($output_file_base =~ /\.precompile$/ or not $output_file_base =~ /\./)
534 341 2 if ($output_type eq 'dynamic_lib') { }
0 2 elsif ($output_type eq 'static_lib') { }
2 0 elsif ($output_type eq 'exe') { }
571 343 0 if (defined $build_dir) { }
580 0 343 unless ($config)
601 27 316 if (defined $config->file)
610 261 82 if ($need_generate)
648 259 2 if ($output_type eq 'dynamic_lib') { }
0 2 elsif ($output_type eq 'static_lib') { }
2 0 elsif ($output_type eq 'exe') { }
656 0 259 unless ($quiet)
665 0 0 unless $cbuilder->do_system(@ar_cmd)
667 0 0 unless ($quiet)
679 2 0 unless ($quiet)
688 0 261 if ($self->debug)
689 0 0 if ($^O eq "MSWin32")
697 0 0 if ($tmp_file =~ /\.def$/)
704 0 0 if (defined $def_file and -f $def_file)
708 0 0 if (defined $lds_file and -f $lds_file)