Lite/SignatureMethods.pm

filter: Statementstmt 100% 19 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 1 totaltotal 96.1% 25 / 26 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Lite/Association.pm ↑ Summary Lite.pm »
1 package OpenID::Lite::SignatureMethods;
2  
3 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 3 ▶use OpenID::Lite::Constants::AssocType qw(:all);
Subroutine BEGIN: called CC=1 SCAR=0.0
7 3 ▶use OpenID::Lite::SignatureMethod::HMAC_SHA1;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 3 ▶use OpenID::Lite::SignatureMethod::HMAC_SHA256;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 3 my %methods = (
11 HMAC_SHA1() => OpenID::Lite::SignatureMethod::HMAC_SHA1->new,
12 HMAC_SHA256() => OpenID::Lite::SignatureMethod::HMAC_SHA256->new,
13 );
14  
15 33 ▶sub select_method {
Subroutine select_method: called CC=1 SCAR=0.0
Pod undocumented
16 33 my ( $self, $type ) = @_;
17 33 return $methods{$type};
18 }
19  
20 3 1;
21  
« Lite/Association.pm ↑ Summary Lite.pm »