bin/html-to-hd

filter: Statementstmt 100% 15 / 15 Branchbran n/a Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 90.4% 19 / 21 CC 1 SCAR 0.0
CC
1
Cov
94%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Build ↑ Summary
1 #!/usr/bin/perl -w
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 ▶use Getopt::Long;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use HTML::Links::Localize;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 1 my $only_newer;
9  
10 1 my $result = GetOptions("f" => \$only_newer);
11  
12 1 my $src_dir = shift;
13 1 ▶my $dest_dir = shift || "./dest";
Condition50%1/2
shift @ARGV || './dest'
l!l
10
MC/DC0%0/1
shift @ARGV || './dest'
shift @ARGV
Truth table50%1/2
A
A= shift @ARGV
Aresult
11
00
14  
15 1 my $converter =
16 HTML::Links::Localize->new(
17 'base_dir' => $src_dir,
18 'dest_dir' => $dest_dir
19 );
20  
21 1 $converter->process_dir_tree('only-newer' => $only_newer);
22  
23 __END__
« Build ↑ Summary