Branch Coverage

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


line true false branch
25 0 693 if (@_) { }
36 3 992 if (@_) { }
47 4 611 if (@_) { }
58 4 602 if (@_) { }
69 2 871 if (@_) { }
87 0 825 if (defined $env_spvm_cc_debug)
92 0 825 if (defined $env_spvm_cc_quiet)
97 0 825 if (defined $env_spvm_cc_force)
132 3 986 if (defined $self->force) { }
3 983 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 309 unless (-f $spvm_precompile_soruce_file)
198 247 62 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 342 0 if (defined $build_dir) { }
251 0 342 unless (defined $output_dir and -d $output_dir)
265 332 10 unless ($ignore_native_module)
268 0 332 unless (defined $native_module_ext)
274 0 332 unless (-f $native_class_file)
283 33 309 if (defined $native_src_dir)
294 10 360 unless defined $source_file
299 332 28 if ($current_is_native_module) { }
324 33 327 if (defined $native_include_dir and -d $native_include_dir)
329 83 45 if (-f $include_file_name)
339 51 309 if (defined $config->file)
342 332 28 if ($current_is_native_module)
369 284 76 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 329 2 unless (defined $output_file)
519 0 329 unless (defined $output_dir and -d $output_dir)
530 331 0 if ($output_file_base =~ /\.precompile$/ or not $output_file_base =~ /\./)
534 329 2 if ($output_type eq 'dynamic_lib') { }
0 2 elsif ($output_type eq 'static_lib') { }
2 0 elsif ($output_type eq 'exe') { }
571 331 0 if (defined $build_dir) { }
580 0 331 unless ($config)
601 23 308 if (defined $config->file)
610 261 70 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)