script/CA.pl untested

filter: Statementstmt 0.0% 0 / 32 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 7 Podpod n/a totaltotal 0.0% 0 / 39 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #!/usr/bin/env perl
2  
3 use Object::Pad ':experimental(:all)';
4  
5 package CA;
6  
7 use lib 'lib';
8  
9 class CA : isa(Net::SSLeay::CA);
10  
11 #inherit Net::SSLeay::CA '$env';
12  
13 use utf8;
14 use v5.40;
15  
16 use Getopt::Long qw'GetOptionsFromArray :config auto_abbrev';
17  
18 use Net::SSLeay::CA::Base;
19 use Net::SSLeay::CA::Util;
20  
21 field $argv = [];
22 field $cliopts : param(dest) = {};
23  
24 method $run (%opts) {
25  
26 }
27  
28 method run : common ($argv = \@ARGV, $dest = {}, %opts) {
29 GetOptionsFromArray( $argv, $dest, 'config=s', );
30 my $app = $class->new( dest => $dest, argv => $argv, %opts );
31 Net::SSLeay::CA::Base::dmsg($app);
32 my $res = $app->$run;
33 Net::SSLeay::CA::Base::dmsg($app, $res);
34 ( $app, $res );
35  
36 }
37  
38 package main;
39  
40 CA->run( \@ARGV )