Twiggy/TLS/Info.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 3 totaltotal 0.0% 0 / 21 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
client_certificate
2.0
cipher
2.0
CRAP 2.0
1 package Twiggy::TLS::Info;
2  
3 use strict;
4 use warnings;
5  
6 sub new {
7 my ($class, $sock) = @_;
8  
9 bless {sock => $sock}, $class
10 }
11  
12 sub client_certificate {
13 my $self = shift;
14  
15 $self->{sock}->peer_certificate(@_);
16 }
17  
18 sub cipher {
19 my $self = shift;
20  
21 $self->{sock}->get_cipher;
22 }
23  
24 1;
25 __END__