| 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
MC/DC0%0/2
ref $that || $that
ref $that
$that
Truth table33%1/3
A || B
A= ref $thatB= $that
| |||||||||||||||||||||
| 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; | |||||||||||||||||||