script/yath-ui-sweeper.pl untested

filter: Statementstmt 0.0% 0 / 23 Branchbran 0.0% 0 / 2 Conditioncond 0.0% 0 / 8 MC/DCmcdc 0.0% 0 / 3 Subroutinesub 0.0% 0 / 4 Podpod n/a totaltotal 0.0% 0 / 40 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 use strict;
2 use warnings;
3  
4 our $VERSION = '0.000150';
5  
6 use Test2::Harness::UI::Config;
7 use Test2::Harness::UI::Sweeper;
8  
9 if (grep { m/^-+(h(?:elp)?|\?)$/ } @ARGV) {
10 print "Usage: $0 'DSN' ['USER'] ['PASSWORD'] 'INTERVAL'\nDSN and Interval are required, sql username and password are optional.\n";
11 exit 0;
12 }
13  
14 my $dsn = shift @ARGV // die "Must provide a DSN as the first command line argument";
15 my $interval = pop @ARGV // "10 day";
16  
17 my ($user, $pass) = @ARGV;
18  
19 my $config = Test2::Harness::UI::Config->new(
20 dbi_dsn => $dsn,
21 dbi_user => $user // '',
22 dbi_pass => $pass // '',
23 single_user => 1,
24 show_user => 0,
25 );
26  
27 my $sweeper = Test2::Harness::UI::Sweeper->new(
28 config => $config,
29 interval => $interval,
30 );
31  
32 $sweeper->sweep(coverage => 0);