HTTP/Interface/System/Base.pm

filter: Statementstmt 100% 13 / 13 Branchbran n/a Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 100% 4 / 4 Podpod 0.0% 0 / 2 totaltotal 75.0% 18 / 24 CC 2 SCAR 3.5
CC
2
Cov
88%
new
2.1
BEGIN
1.0
BEGIN
1.0
CRAP 1.4
« HTTP/Os/Windows/Swap.pm ↑ Summary HTTP/Base.pm »
1 #
2 # (c) Jan Gehring <jan.gehring@gmail.com>
3 #
4 # vim: set ts=3 sw=3 tw=0:
5 # vim: set expandtab:
6
7 package Rex::Endpoint::HTTP::Interface::System::Base;
8
9 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 5 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 5 ▶sub new {
Subroutine new: called CC=2 SCAR=7.2
Pod undocumented
13 5 my $that = shift;
14 5 ▶ my $proto = ref($that) || $that;
Condition33%1/3
ref $that || $that
l!l&&r!l&&!r
050
MC/DC0%0/2
ref $that || $that
ref $that $that
Truth table33%1/3
A || B
A= ref $thatB= $that
ABresult
1X1
011
000
15 5 my $self = { @_ };
16  
17 5 bless($self, $proto);
18  
19 5 return $self;
20 }
21  
22 5 ▶sub set_routes {
Subroutine set_routes: called CC=1 SCAR=0.0
Pod undocumented
23 5 my ($self, $r) = @_;
24 }
25  
26 5 1;
« HTTP/Os/Windows/Swap.pm ↑ Summary HTTP/Base.pm »