line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::SSLLabs::Suites; |
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
21
|
use strict; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
100
|
|
4
|
3
|
|
|
3
|
|
33
|
use warnings; |
|
3
|
|
|
|
|
7
|
|
|
3
|
|
|
|
|
70
|
|
5
|
3
|
|
|
3
|
|
1260
|
use WebService::SSLLabs::Suite(); |
|
3
|
|
|
|
|
9
|
|
|
3
|
|
|
|
|
567
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.31'; |
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->{list} ) { |
14
|
0
|
|
|
|
|
|
my @suites = @{ $self->{list} }; |
|
0
|
|
|
|
|
|
|
15
|
0
|
|
|
|
|
|
$self->{list} = []; |
16
|
0
|
|
|
|
|
|
foreach my $suite (@suites) { |
17
|
0
|
|
|
|
|
|
push @{ $self->{list} }, WebService::SSLLabs::Suite->new($suite); |
|
0
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
else { |
21
|
0
|
|
|
|
|
|
$self->{list} = []; |
22
|
|
|
|
|
|
|
} |
23
|
0
|
|
|
|
|
|
return $self; |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub list { |
27
|
0
|
|
|
0
|
1
|
|
my ($self) = @_; |
28
|
0
|
|
|
|
|
|
return @{ $self->{list} }; |
|
0
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
sub preference { |
32
|
0
|
|
|
0
|
1
|
|
my ($self) = @_; |
33
|
0
|
0
|
|
|
|
|
return $self->{preference} ? 1 : 0; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
1; |
37
|
|
|
|
|
|
|
__END__ |