OpenSSL/Config.pm

filter: Statementstmt 100% 23 / 23 Branchbran 50.0% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 93.7% 30 / 32 SCAR 0.0
CC
1
Cov
93%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« OpenSSL/CertificateAuthority.pm ↑ Summary
1 6 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 6 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 package Tiny::OpenSSL::Config;
5  
6 # ABSTRACT: Load default Tiny::OpenSSL configuration
7 6 our $VERSION = '0.1.2'; # VERSION
8  
9 6 ▶use YAML::Tiny;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 6 ▶use File::ShareDir qw(dist_file);
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 6 ▶local $YAML::UseCode = 0 if !defined $YAML::UseCode;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $YAML::UseCode 6 0 6
13 6 ▶local $YAML::LoadCode = 0 if !defined $YAML::LoadCode;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $YAML::LoadCode 6 0 6
14  
15 6 ▶use base qw(Exporter);
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 6 our @EXPORT = qw( $CONFIG );
18  
19 6 my $yaml = YAML::Tiny->read(dist_file 'Tiny-OpenSSL', 'config.yml');
20  
21 6 our $CONFIG = $yaml->[0];
22  
23 6 $CONFIG->{openssl} = 'openssl';
24  
25 6 1;
26  
27 __END__
« OpenSSL/CertificateAuthority.pm ↑ Summary