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