bin/rrr

filter: Statementstmt 95.4% 21 / 22 Branchbran 50.0% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 90.3% 28 / 31 CC 1 SCAR 0.0
CC
1
Cov
88%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« bin/rrr-init ↑ Summary
1 #!/usr/bin/perl
2  
3 =head1 NAME
4  
5 rrr - rsync (rapidly,repeatedly) recent rubbish
6  
7 =head1 SYNOPSIS
8  
9 rrr does not exist yet, try
10 man File::Rsync::Mirror::Recent
11  
12 =head1 OPTIONS
13  
14 =over 8
15  
16 =cut
17  
18 1 my $optpod = <<'=back';
19  
20 =item B<--help|h>
21  
22 Prints a brief message and exits.
23  
24 =item B<--verbose|v+>
25  
26 More feedback.
27  
28 =back
29  
30 =head1 DESCRIPTION
31  
32 This program does not exist yet. I am still musing about the
33 interface, for now, please see the file HOWTO.mirrorcpan in the
34 File::Rsync::Mirror::Recent distribution and follow the instructions
35 there.
36  
37 The usual blurb: rersyncrecent is a project to get speedy rsync
38 operation on large trees over multiple hosts. It maintains a
39 collection of files with metadata (so called recentfiles) that
40 represent adjacent or overlapping timespans of file change events.
41  
42 =cut
43  
44 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
45 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
46  
47 1 ▶use File::Rsync::Mirror::Recent;
Subroutine BEGIN: called CC=1 SCAR=0.0
48 1 ▶use Getopt::Long;
Subroutine BEGIN: called CC=1 SCAR=0.0
49 1 ▶use Pod::Usage qw(pod2usage);
Subroutine BEGIN: called CC=1 SCAR=0.0
50  
51 1 our %Opt;
52 1 my @opt = $optpod =~ /B<--(\S+)>/g;
53  
54 1 ▶GetOptions(\%Opt,
Branch: 1 branch
BranchTrueFalseTotal
&GetOptions(\%main::Opt, @opt) or pod2usage(2) 1 0 1
55 @opt,
56 ) or pod2usage(2);
57  
58 1 ▶if ($Opt{help}) {
Branch: 1 branch
BranchTrueFalseTotal
if ($main::Opt{"help"}) 1 0 1
59 1 pod2usage(0);
60 }
61  
62 0 pod2usage(0);
63  
64 __END__
« bin/rrr-init ↑ Summary