Branch Coverage

blib/lib/SPVM/Builder/Util.pm
Criterion Covered Total %
branch 60 110 54.5


line true false branch
234 2220 186480 if ($spvm_core_file_mtime > $spvm_dependent_files_mtime_max)
240 0 1110 if ($force) { }
244 848 262 if (not -f $output_file) { }
251 445 62 if (-f $input_file)
254 310 135 if ($input_file_mtime > $input_files_mtime_max)
259 262 0 if ($exists_input_file_at_least_one)
262 262 0 if (defined $spvm_dependent_files_mtime_max)
263 0 262 if ($spvm_dependent_files_mtime_max > $input_files_mtime_max)
268 1 261 if ($input_files_mtime_max > $output_file_mtime)
281 0 184 unless open my $fh, "<", $file
305 177 7 if (index($content, $string) >= 0)
315 0 2 unless open my $fh, ">:raw", $file
325 25764 15604 if ($category eq 'native') { }
15604 0 elsif ($category eq 'precompile') { }
342 0 0 unless length $1
343 0 0 if $min
348 0 0 @_ ? :
360 0 0 ref $_[0] eq 'ARRAY' ? :
373 2172 987 $category eq 'native' ? :
383 1 1 $category eq 'native' ? :
395 96 925 $category eq 'native' ? :
396 692 329 if (defined $ext)
424 355 14 if (defined $ext)
466 2 0 defined $options->{'lib_dir'} ? :
481 0 0 if $_ ne "."
486 1 1 if ($category eq "native")
504 0 1 if (-d $native_include_dir)
505 0 0 if (-f $_)
512 0 1 if (-d $native_src_dir)
513 0 0 if (-f $_)
538 1110 0 if (my $builder_loaded_file = $INC{'SPVM/Builder/Util.pm'})
546 0 29970 unless (-f $spvm_core_perl_class_file)
556 0 72150 unless (-f $spvm_core_header_file)
566 0 58830 unless (-f $spvm_core_source_file)
576 0 27750 unless (-f $spvm_compiler_and_runtime_class_file)
583 0 1110 unless (@spvm_dependent_files)
594 3 19 if (defined $mode)
602 22 0 if (-f $config_file_tmp)
607 0 22 unless (defined $config_file)
625 2 313 if (defined $rel_file)
636 0 0 if (defined $rel_file)
647 12 334 if (defined $rel_file)
658 0 329 if (defined $rel_file)
681 0 329 unless (@$dl_func_list)
700 3159 0 if (@$method_names)
714 37988 0 if ($dynamic_lib_file) { }
717 37988 0 if ($dynamic_lib_libref) { }
721 0 37988 unless ($cfunc_address)
769 0 3066 if (defined $value and not length $value)
779 0 0 unless open my $spvm_module_fh, "<", $spvm_class_file
783 0 0 if ($content =~ /\bversion\s*"([\d\._]+)"\s*;/)
787 0 0 unless (defined $version_string)
799 0 2 unless open my $spvm_module_fh, "<", $spvm_api_header_file
803 2 0 if ($content =~ /#define\s+SPVM_NATIVE_VERSION_NUMBER\s* ([\d\._]+)/)
807 0 2 unless (defined $version_string)