Export/ISO9660/File.pm

filter: Statementstmt 100% 21 / 21 Branchbran 100% 4 / 4 Conditioncond 50.0% 1 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 100% 9 / 9 Podpod 100% 4 / 4 totaltotal 95.1% 39 / 41 CC 4 SCAR 4.2
CC
4
Cov
96%
is_dir
2.1
mtime
2.0
flags
2.0
CRAP 1.5
« Export/VFAT/File.pm ↑ Summary Export/ISO9660/Directory.pm »
1 package Sys::Export::ISO9660::File;
2  
3 2 our $VERSION = '0.006'; # VERSION
4 # ABSTRACT: Represents a file in ISO9660, including packed encodings of directories
5  
6 2 ▶use v5.26;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 2 ▶use experimental qw( signatures );
Subroutine BEGIN: called CC=1 SCAR=0.0
9 2 ▶use parent 'Sys::Export::Extent';
Subroutine BEGIN: called CC=1 SCAR=0.0
10 2 ▶use Sys::Export::ISO9660;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 2 our @CARP_NOT= qw( Sys::Export::ISO9660 );
12  
13  
14 95 ▶sub block_size($self) { 2048 }
Subroutine block_size: called CC=1 SCAR=0.0
Pod documented
15 26 ▶sub mtime($self, @v) { @v? ($self->{mtime}= $v[0]) : $self->{mtime} }
Subroutine mtime: called CC=2 SCAR=6.9
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
@v ? : 2 24 26
16 41 ▶sub flags($self, @v) { @v? ($self->{flags}= $v[0]) : $self->{flags} }
Subroutine flags: called CC=2 SCAR=6.9
Pod documented
Branch: 1 branch
BranchTrueFalseTotal
@v ? : 12 29 41
17 7 ▶sub is_dir($self) { ($self->{flags}||0) & Sys::Export::ISO9660::FLAG_DIRECTORY() }
Subroutine is_dir: called CC=2 SCAR=7.6
Pod documented
Condition50%1/2
$self->{'flags'} || 0
l!l
07
MC/DC0%0/1
$self->{'flags'} || 0
$self->{'flags'}
Truth table50%1/2
A
A= $self->{'flags'}
Aresult
11
00
18  
19 2 1;
20  
21 __END__
« Export/VFAT/File.pm ↑ Summary Export/ISO9660/Directory.pm »