lib/Rex/Interface/File/Base.pm

filter: Statementstmt 70.5% 12 / 17 Branchbran n/a Conditioncond 33.3% 1 / 3 MC/DCmcdc 0.0% 0 / 2 Subroutinesub 37.5% 3 / 8 Podpod 0.0% 0 / 6 totaltotal 44.4% 16 / 36 CC 2 SCAR 5.8
CC
2
Cov
65%
new
2.1
open
2.0
read
2.0
CRAP 1.8
« lib/Rex/Helper/File/Stat.pm ↑ Summary blib/lib/Rex/Interface/Cache.pm »
1 #
2 # (c) Jan Gehring <jan.gehring@gmail.com>
3 #
4  
5 package Rex::Interface::File::Base;
6  
7 16 ▶use v5.14.4;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 16 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 16 our $VERSION = '1.16.1'; # VERSION
11  
12 195 ▶sub new {
Subroutine new: called CC=2 SCAR=7.2
Pod undocumented
13 195 my $that = shift;
14 195 ▶ my $proto = ref($that) || $that;
Condition33%1/3
ref $that || $that
l!l&&r!l&&!r
01950
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 195 my $self = {@_};
16  
17 195 bless( $self, $proto );
18  
19 195 return $self;
20 }
21  
22 0 ▶sub open { die("Must be implemented by Interface Class."); }
Subroutine open: not called CC=1 SCAR=6.9
Pod undocumented
23 0 ▶sub read { die("Must be implemented by Interface Class."); }
Subroutine read: not called CC=1 SCAR=6.9
Pod undocumented
24 0 ▶sub write { die("Must be implemented by Interface Class."); }
Subroutine write: not called CC=1 SCAR=6.9
Pod undocumented
25 0 ▶sub close { die("Must be implemented by Interface Class."); }
Subroutine close: not called CC=1 SCAR=6.9
Pod undocumented
26 0 ▶sub seek { die("Must be implemented by Interface Class."); }
Subroutine seek: not called CC=1 SCAR=6.9
Pod undocumented
27  
28 16 1;
« lib/Rex/Helper/File/Stat.pm ↑ Summary blib/lib/Rex/Interface/Cache.pm »