Branch Coverage

blib/lib/File/OSS/Scan.pm
Criterion Covered Total %
branch 0 162 0.0


line true false branch
325 0 0 scalar @_ != 1 ? :
335 0 0 defined $params{$opt} ? :
339 0 0 if not $$options{'verbose'} =~ /^\d$/ or $$options{'verbose'} < 0 or $$options{'verbose'} > 2
344 0 0 if not $$options{'cache'} =~ /^\d$/ or $$options{'cache'} < 0 or $$options{'cache'} > 2
349 0 0 unless -d $$options{'working_dir'} and -w $$options{'working_dir'} or mkdir $$options{'working_dir'}, 493
365 0 0 unless (-x $$cmd_var)
398 0 0 unless defined $ruleset
414 0 0 if $$options{'verbose'} != 0
418 0 0 if $$options{'cache'} != 0
421 0 0 if $$options{'cache'} == 2
447 0 0 if ($base_dir =~ /$exclude_dir/)
448 0 0 if $$options{'verbose'} == 2
458 0 0 if ($$options{'verbose'} == 2)
462 0 0 unless ($short_base_dir)
470 0 0 unless opendir DIR, $base_dir
477 0 0 -f "$base_dir/$_" ? :
490 0 0 if $$options{'verbose'} == 2
504 0 0 if ($$options{'cache'} == 1)
507 0 0 if (defined $cached_file)
512 0 0 if ($size eq $c_size and $mtime eq $c_mtime)
515 0 0 if $$options{'verbose'} == 2
524 0 0 if not $skip_flag and $$options{'verbose'} != 0
528 0 0 unless $skip_flag
569 0 0 defined $$options{$opt} ? :
595 0 0 $$h_file{'name'} =~ /\.([^.]+)$/ ? :
598 0 0 if ($file_ext ne '')
600 0 0 if (grep /^\Q$file_ext\E$/i, @$exclude)
601 0 0 if $$options{'verbose'} == 2
610 0 0 if ($$h_file{'name'} =~ /\Q$exclude_file\E/)
611 0 0 if $$options{'verbose'} == 2
618 0 0 if (-f $$h_file{'path'} and not -s $$h_file{'path'})
619 0 0 if $$options{'verbose'} == 2
625 0 0 if (-B $$h_file{'path'})
626 0 0 if $$options{'verbose'} == 2
640 0 0 if ($msg)
641 0 0 if (defined $anchor_file and $anchor_file =~ /^(.*)\.[^.]*$/) { }
646 0 0 $$h_file{'path'} =~ m[^$$options{'working_dir'}/(.*)$] ? :
669 0 0 if ($binary and $file_ext eq 'jar' || $file_ext eq 'gz' || $file_ext eq 'zip' || $file_ext eq 'Z' || $file_ext eq 'tar')
678 0 0 unless ($$options{'inflate'})
679 0 0 if $$options{'verbose'} == 2
700 0 0 unless (defined $cmd)
701 0 0 if $$options{'verbose'} == 2
707 0 0 defined $$ext_cmd_map{$file_ext}[1] ? :
711 0 0 if $$options{'verbose'} == 2
718 0 0 if ($$h_file{'path'} =~ /^$scan_base/) { }
722 0 0 unless copy($$h_file{'path'}, $inflate_file)
749 0 0 if (-f $inflate_file and -r $inflate_file)
751 0 0 if $$options{'verbose'} != 0
756 0 0 if $$options{'verbose'} == 2
765 0 0 if ($$h_file{'path'} =~ /^$scan_base/) { }
767 0 0 if $$options{'verbose'} != 0
778 0 0 if $$options{'verbose'} != 0
796 0 0 if ($$ruleset{'LINE'})
815 0 0 if (not $binary) { }
823 0 0 if $$options{'verbose'} == 2
841 0 0 if ($msg)
843 0 0 if (defined $anchor_file and $anchor_file =~ /^(.*)\.[^.]*$/) { }
848 0 0 $$h_file{'path'} =~ m[^$$options{'working_dir'}/(.*)$] ? :
889 0 0 if ($fname =~ /^\Q$sname\E$/i)
893 0 0 if $$options{'verbose'} != 0
898 0 0 if $$options{'verbose'} != 0
917 0 0 if $pattern =~ /^\w+$/
921 0 0 $$args[1] ? :
0 0 if defined $$args[1]
924 0 0 if ($case_sensitive) { }
925 0 0 if ($line =~ /$pattern/)
926 0 0 if $$options{'verbose'} != 0
931 0 0 if $$options{'verbose'} != 0
934 0 0 if $$options{'verbose'} != 0
940 0 0 if ($line =~ /$pattern/i)
941 0 0 if $$options{'verbose'} != 0
946 0 0 if $$options{'verbose'} != 0
949 0 0 if $$options{'verbose'} != 0
971 0 0 if $line =~ /Copyright\s*\(C\)\s*\w+/i or $line =~ /Copyright\s*[\d\-]+\s*\w+/i or $line =~ /Copyright.*Software/i or $line =~ /Copyright.*All\srights\sreserved/i or $line =~ /\@Copyright/i
980 0 0 if ($matched)
983 0 0 if ($line =~ /\b$exclude_ext\b/i)
984 0 0 if ($$options{'verbose'} == 2)
995 0 0 if ($matched)
996 0 0 if $$options{'verbose'} != 0
1001 0 0 if $$options{'verbose'} != 0
1004 0 0 if $$options{'verbose'} != 0