File Coverage

blib/lib/WebService/SSLLabs/Chain.pm
Criterion Covered Total %
statement 9 26 34.6
branch 0 2 0.0
condition n/a
subroutine 3 6 50.0
pod 3 3 100.0
total 15 37 40.5


line stmt bran cond sub pod time code
1             package WebService::SSLLabs::Chain;
2              
3 3     3   18 use strict;
  3         7  
  3         85  
4 3     3   15 use warnings;
  3         5  
  3         66  
5 3     3   1221 use WebService::SSLLabs::ChainCert();
  3         55  
  3         560  
6              
7             our $VERSION = '0.32';
8              
9             sub new {
10 0     0 1   my ( $class, $json ) = @_;
11 0           my $self = $json;
12 0           bless $self, $class;
13 0 0         if ( defined $self->{certs} ) {
14 0           my @certs = @{ $self->{certs} };
  0            
15 0           $self->{certs} = [];
16 0           foreach my $cert (@certs) {
17 0           push @{ $self->{certs} },
  0            
18             WebService::SSLLabs::ChainCert->new($cert);
19             }
20             }
21             else {
22 0           $self->{certs} = [];
23             }
24 0           return $self;
25             }
26              
27             sub certs {
28 0     0 1   my ($self) = @_;
29 0           return @{ $self->{certs} };
  0            
30             }
31              
32             sub issues {
33 0     0 1   my ($self) = @_;
34 0           return $self->{issues};
35             }
36              
37             1;
38             __END__