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.006'; # VERSION
4             # ABSTRACT: Represents a case-folded directory in ISO9660
5              
6 2     2   19 use v5.26;
  2         6  
7 2     2   7 use warnings;
  2         2  
  2         79  
8 2     2   7 use experimental qw( signatures );
  2         3  
  2         10  
9 2     2   218 use parent 'Sys::Export::VFAT::Directory';
  2         3  
  2         7  
10              
11              
12 5     5 1 10 sub new($class, %attrs) {
  5         30  
  5         12  
  5         11  
13 5         14 my $joliet_file= delete $attrs{joliet_file};
14 5         34 my $self= $class->next::method(%attrs);
15 5 50       12 $self->{joliet_file}= $joliet_file if defined $joliet_file;
16 5         29 $self;
17             }
18              
19 2     2 1 2 sub is_valid_name($self, $name) {
  2         12  
  2         3  
  2         2  
20 2         7 Sys::Export::ISO9660::is_valid_joliet_name($name)
21             }
22 2     2 1 2 sub is_valid_shortname($self, $name) {
  2         2  
  2         4  
  2         2  
23 2         5 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__