Export/ISO9660/Directory.pm

filter: Statementstmt 95.4% 21 / 22 Branchbran 50.0% 1 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 88.8% 8 / 9 Podpod 100% 5 / 5 totaltotal 92.1% 35 / 38 CC 2 SCAR 2.7
CC
2
Cov
92%
new
2.0
remove_invalid_shortname_chars
2.0
BEGIN
1.0
CRAP 1.3
« Export/ISO9660/File.pm ↑ Summary Export/Exporter.pm »
1 package Sys::Export::ISO9660::Directory;
2  
3 2 our $VERSION = '0.006'; # VERSION
4 # ABSTRACT: Represents a case-folded directory in ISO9660
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::VFAT::Directory';
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11  
12 5 ▶sub new($class, %attrs) {
Subroutine new: called CC=2 SCAR=7.0
Pod documented
13 5 my $joliet_file= delete $attrs{joliet_file};
14 5 my $self= $class->next::method(%attrs);
15 5 ▶ $self->{joliet_file}= $joliet_file if defined $joliet_file;
Branch: 1 branch
BranchTrueFalseTotal
if defined $joliet_file 0 5 5
16 5 $self;
17 }
18  
19 2 ▶sub is_valid_name($self, $name) {
Subroutine is_valid_name: called CC=1 SCAR=0.0
Pod documented
20 2 Sys::Export::ISO9660::is_valid_joliet_name($name)
21 }
22 2 ▶sub is_valid_shortname($self, $name) {
Subroutine is_valid_shortname: called CC=1 SCAR=0.0
Pod documented
23 2 Sys::Export::ISO9660::is_valid_shortname($name)
24 }
25 0 ▶sub remove_invalid_shortname_chars($self, $name, $repl) {
Subroutine remove_invalid_shortname_chars: not called CC=1 SCAR=6.9
Pod documented
26 0 Sys::Export::ISO9660::remove_invalid_shortname_chars($name, $repl)
27 }
28  
29  
30 33 ▶sub joliet_file { $_[0]{joliet_file} }
Subroutine joliet_file: called CC=1 SCAR=0.0
Pod documented
31  
32 2 require Sys::Export::ISO9660;
33 2 1;
34  
35 __END__
« Export/ISO9660/File.pm ↑ Summary Export/Exporter.pm »