File Coverage

blib/lib/Sys/Export/ISO9660/File.pm
Criterion Covered Total %
statement 32 32 100.0
branch 4 4 100.0
condition 1 2 50.0
subroutine 9 9 100.0
pod 4 4 100.0
total 50 51 98.0


line stmt bran cond sub pod time code
1             package Sys::Export::ISO9660::File;
2              
3             our $VERSION = '0.005_002'; # TRIAL VERSION
4             # ABSTRACT: Represents a file in ISO9660, including packed encodings of directories
5              
6 2     2   22 use v5.26;
  2         6  
7 2     2   8 use warnings;
  2         3  
  2         139  
8 2     2   9 use experimental qw( signatures );
  2         2  
  2         15  
9 2     2   258 use parent 'Sys::Export::Extent';
  2         2  
  2         11  
10 2     2   80 use Sys::Export::ISO9660;
  2         9  
  2         326  
11             our @CARP_NOT= qw( Sys::Export::ISO9660 );
12              
13              
14 95     95 1 103 sub block_size($self) { 2048 }
  95         94  
  95         84  
  95         216  
15 26 100   26 1 28 sub mtime($self, @v) { @v? ($self->{mtime}= $v[0]) : $self->{mtime} }
  26         25  
  26         24  
  26         19  
  26         123  
16 41 100   41 1 44 sub flags($self, @v) { @v? ($self->{flags}= $v[0]) : $self->{flags} }
  41         41  
  41         45  
  41         40  
  41         257  
17 7   50 7 1 10 sub is_dir($self) { ($self->{flags}||0) & Sys::Export::ISO9660::FLAG_DIRECTORY() }
  7         9  
  7         8  
  7         38  
18              
19             1;
20              
21             __END__