NetApp/Filer/Option.pm

filter: Statementstmt 78.2% 18 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 80.0% 4 / 5 Podpod 0.0% 0 / 1 totaltotal 75.8% 22 / 29 CC 1 SCAR 1.8
CC
1
Cov
78%
BUILD
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« NetApp/Filer/License.pm ↑ Summary NetApp/Snapmirror/Destination.pm »
1  
2 package NetApp::Filer::Option;
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 %name_of :ATTR( get => 'name' );
16 7 my %value_of :ATTR( get => 'value' );
17
18 0 ▶ sub BUILD {
Subroutine BUILD: not called CC=1 SCAR=6.9
Pod undocumented
19  
20 0 my ($self,$ident,$args_ref) = @_;
21  
22 0 my @args = %$args_ref;
23  
24 0 my (%args) = validate( @args, {
25 name => { type => SCALAR },
26 value => { type => SCALAR },
27 });
28  
29 0 $name_of{$ident} = $args{name};
30 0 $value_of{$ident} = $args{value};
31  
32 }
33  
34 }
35  
36 7 1;
« NetApp/Filer/License.pm ↑ Summary NetApp/Snapmirror/Destination.pm »