lib/Rex/Resource/firewall/Provider/base.pm

filter: Statementstmt 40.0% 10 / 25 Branchbran n/a Conditioncond 0.0% 0 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 33.3% 3 / 9 Podpod 0.0% 0 / 6 totaltotal 28.8% 13 / 45 CC 2 SCAR 9.2
CC
2
Cov
36%
new
6.0
present
2.0
absent
2.0
CRAP 2.5
« lib/Rex/Cloud/Base.pm ↑ Summary lib/Rex/Virtualization/Base.pm »
1 #
2 # (c) Jan Gehring <jan.gehring@gmail.com>
3 #
4  
5 package Rex::Resource::firewall::Provider::base;
6  
7 1 ▶use v5.14.4;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 our $VERSION = '1.16.1'; # VERSION
11  
12 1 ▶use Data::Dumper;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 0 ▶sub new {
Subroutine new: not called CC=2 SCAR=17.9
Pod undocumented
15 0 my $that = shift;
16 0 ▶ my $proto = ref($that) || $that;
Condition0%0/3
ref $that || $that
l!l&&r!l&&!r
000
MC/DC0%0/2
ref $that || $that
ref $that $that
Truth table0%0/3
A || B
A= ref $thatB= $that
ABresult
1X1
011
000
17 0 my $self = {@_};
18  
19 0 bless( $self, $proto );
20  
21 0 return $self;
22 }
23  
24 0 ▶sub present {
Subroutine present: not called CC=1 SCAR=6.9
Pod undocumented
25 0 my ( $self, $rule_config ) = @_;
26 0 die "Must be implemented by provider.";
27 }
28  
29 0 ▶sub absent {
Subroutine absent: not called CC=1 SCAR=6.9
Pod undocumented
30 0 my ( $self, $rule_config ) = @_;
31 0 die "Must be implemented by provider.";
32 }
33  
34 0 ▶sub enable {
Subroutine enable: not called CC=1 SCAR=6.9
Pod undocumented
35 0 my ( $self, $rule_config ) = @_;
36 0 Rex::Logger::debug("enable: Not implemented by provider.");
37 }
38  
39 0 ▶sub disable {
Subroutine disable: not called CC=1 SCAR=6.9
Pod undocumented
40 0 my ( $self, $rule_config ) = @_;
41 0 Rex::Logger::debug("disable: Not implemented by provider.");
42 }
43  
44 0 ▶sub logging {
Subroutine logging: not called CC=1 SCAR=6.9
Pod undocumented
45 0 my ( $self, $rule_config ) = @_;
46 0 Rex::Logger::debug("logging: Not implemented by provider.");
47 }
48  
49 1 1;
« lib/Rex/Cloud/Base.pm ↑ Summary lib/Rex/Virtualization/Base.pm »