Branch Coverage

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


line true false branch
234 4568 189572 if ($spvm_core_file_mtime > $spvm_dependent_files_mtime_max)
240 0 1142 if ($force) { }
244 848 294 if (not -f $output_file) { }
251 497 70 if (-f $input_file)
254 345 152 if ($input_file_mtime > $input_files_mtime_max)
259 294 0 if ($exists_input_file_at_least_one)
262 294 0 if (defined $spvm_dependent_files_mtime_max)
263 0 294 if ($spvm_dependent_files_mtime_max > $input_files_mtime_max)
268 1 293 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 26450 16088 if ($category eq 'native') { }
16088 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 2184 1005 $category eq 'native' ? :
383 1 1 $category eq 'native' ? :
395 108 949 $category eq 'native' ? :
396 716 341 if (defined $ext)
424 363 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 1142 0 if (my $builder_loaded_file = $INC{'SPVM/Builder/Util.pm'})
546 0 30834 unless (-f $spvm_core_perl_class_file)
556 0 74230 unless (-f $spvm_core_header_file)
566 0 60526 unless (-f $spvm_core_source_file)
576 0 28550 unless (-f $spvm_compiler_and_runtime_class_file)
583 0 1142 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 321 if (defined $rel_file)
636 0 0 if (defined $rel_file)
647 12 346 if (defined $rel_file)
658 0 341 if (defined $rel_file)
681 0 341 unless (@$dl_func_list)
700 3189 0 if (@$method_names)
714 38704 0 if ($dynamic_lib_file) { }
717 38704 0 if ($dynamic_lib_libref) { }
721 0 38704 unless ($cfunc_address)
769 0 3138 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)