script/build_selenium_spec.pl untested

filter: Statementstmt 0.0% 0 / 31 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 9 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 45 CC 2 SCAR 10.3
CC
2
Cov
0%
main
6.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.8
1 #!/usr/local/bin/perl
2  
3 package Bin::build_selenium_spec;
4 $Bin::build_selenium_spec::VERSION = '1.06';
5 #ABSTRACT: Convenience script to fetch the selenium specification from WC3
6  
7 use strict;
8 use warnings;
9  
10 use v5.28;
11  
12 no warnings 'experimental';
13 use feature qw/signatures/;
14  
15 use Getopt::Long qw{GetOptionsFromArray};
16 use Pod::Usage;
17  
18 use Selenium::Specification;
19  
20 exit main(@ARGV) unless caller;
21  
22 sub main(@args) {
23 my %options;
24 GetOptionsFromArray(\@args,
25 'verbose' => \$options{verbose},
26 'dir=s' => \$options{dir},
27 'force' => \$options{force},
28 'help' => \$options{help},
29 );
30 return pod2usage(verbose => 2, noperldoc => 1) if $options{help};
31 Selenium::Specification::fetch(%options);
32 }
33  
34 1;
35  
36 __END__
37  
38 =pod
39  
40 =encoding UTF-8
41  
42 =head1 NAME
43  
44 Bin::build_selenium_spec - Convenience script to fetch the selenium specification from WC3
45  
46 =head1 VERSION
47  
48 version 1.06
49  
50 =head1 build_selenium_spec.pl
51  
52 Fetches the latest versions of the Selenium specification(s) from the internet and stores them in
53  
54 ~/.selenium/specs
55  
56 As a variety of JSON files.
57  
58 =head1 USAGE
59  
60 =head2 -h --help
61  
62 Print this message
63  
64 =head2 -v, --verbose
65  
66 Print messages rather than being silent
67  
68 =head2 -d --dir $DIR
69  
70 Put the files in a different directory than the default.
71  
72 =head2 -f --force
73  
74 Force a re-fetch even if your copy is newer than that available online.
75 Use to correct corrupted specs.
76  
77 =head1 AUTHOR
78  
79 George S. Baugh <george@troglodyne.net>
80  
81 =head1 COPYRIGHT AND LICENSE
82  
83 This software is Copyright (c) 2023 by George S. Baugh.
84  
85 This is free software, licensed under:
86  
87 The MIT (X11) License
88  
89 =cut