File Coverage

blib/lib/Sys/Export/ISO9660/Directory.pm
Criterion Covered Total %
statement 30 36 83.3
branch 1 2 50.0
condition n/a
subroutine 8 9 88.8
pod 5 5 100.0
total 44 52 84.6


line stmt bran cond sub pod time code
1             package Sys::Export::ISO9660::Directory;
2              
3             our $VERSION = '0.005_002'; # TRIAL VERSION
4             # ABSTRACT: Represents a case-folded directory in ISO9660
5              
6 2     2   18 use v5.26;
  2         6  
7 2     2   8 use warnings;
  2         2  
  2         82  
8 2     2   8 use experimental qw( signatures );
  2         3  
  2         9  
9 2     2   207 use parent 'Sys::Export::VFAT::Directory';
  2         3  
  2         7  
10              
11              
12 5     5 1 10 sub new($class, %attrs) {
  5         13  
  5         21  
  5         12  
13 5         9 my $joliet_file= delete $attrs{joliet_file};
14 5         43 my $self= $class->next::method(%attrs);
15 5 50       16 $self->{joliet_file}= $joliet_file if defined $joliet_file;
16 5         35 $self;
17             }
18              
19 2     2 1 3 sub is_valid_name($self, $name) {
  2         4  
  2         2  
  2         4  
20 2         6 Sys::Export::ISO9660::is_valid_joliet_name($name)
21             }
22 2     2 1 2 sub is_valid_shortname($self, $name) {
  2         3  
  2         2  
  2         3  
23 2         6 Sys::Export::ISO9660::is_valid_shortname($name)
24             }
25 0     0 1 0 sub remove_invalid_shortname_chars($self, $name, $repl) {
  0         0  
  0         0  
  0         0  
  0         0  
26 0         0 Sys::Export::ISO9660::remove_invalid_shortname_chars($name, $repl)
27             }
28              
29              
30 33     33 1 83 sub joliet_file { $_[0]{joliet_file} }
31              
32             require Sys::Export::ISO9660;
33             1;
34              
35             __END__