NetApp/Filer/License.pm

filter: Statementstmt 74.0% 20 / 27 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 72.7% 24 / 33 CC 1 SCAR 1.8
CC
1
Cov
74%
BUILD
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« NetApp/Filer/Version.pm ↑ Summary NetApp/Filer/Option.pm »
1  
2 package NetApp::Filer::License;
3  
4 7 our $VERSION = '500.002';
5 7 $VERSION = eval $VERSION; ## no critic: StringyEval
6  
7 7 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 7 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 7 ▶use Class::Std;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 7 ▶use Params::Validate qw( :all );
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 {
14  
15 7 my %service_of :ATTR( get => 'service' );
16 7 my %type_of :ATTR( get => 'type' );
17 7 my %code_of :ATTR( get => 'code' );
18 7 my %expired_of :ATTR( get => 'expired' );
19
20 0 ▶ sub BUILD {
Subroutine BUILD: not called CC=1 SCAR=6.9
Pod undocumented
21  
22 0 my ($self,$ident,$args_ref) = @_;
23  
24 0 my @args = %$args_ref;
25  
26 0 my (%args) = validate( @args, {
27 service => { type => SCALAR },
28 type => { type => SCALAR },
29 code => { type => SCALAR },
30 expired => { type => SCALAR },
31 });
32  
33 0 $service_of{$ident} = $args{service};
34 0 $type_of{$ident} = $args{type};
35 0 $code_of{$ident} = $args{code};
36 0 $expired_of{$ident} = $args{expired};
37  
38 }
39  
40 }
41  
42 7 1;
« NetApp/Filer/Version.pm ↑ Summary NetApp/Filer/Option.pm »