HSM/Mechanism.pm

filter: Statementstmt 89.4% 17 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod n/a totaltotal 87.5% 21 / 24 CC 1 SCAR 0.6
CC
1
Cov
89%
__ANON__
1.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
↑ Summary HSM.pm »
1 package Crypt::HSM::Mechanism;
2 13 $Crypt::HSM::Mechanism::VERSION = '0.032';
3 13 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 13 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 # Contains the actual implementation
7 13 ▶use Crypt::HSM;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 # Backwards compatibility
10 13 for my $method (qw/min_key_size max_key_size flags has_flags/) {
11 13 ▶ no strict 'refs';
Subroutine BEGIN: called CC=1 SCAR=0.0
12 52 ▶ *{$method} = sub {
Subroutine __ANON__: not called CC=1 SCAR=2.6
13 0 my ($self, @args) = @_;
14 0 return $self->info->$method(@args);
15 }
16 52 }
17  
18 13 1;
19  
20 #ABSTRACT: A PKCS11 mechanism
21  
22 __END__
↑ Summary HSM.pm »