POSIX/Directory/Handle.pm

filter: Statementstmt 66.6% 4 / 6 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod 0.0% 0 / 3 totaltotal 50.0% 6 / 12 CC 1 SCAR 2.9
CC
1
Cov
67%
open
2.0
new
1.0
close
1.0
CRAP 1.3
« POSIX/Module.pm ↑ Summary POSIX/VFS/Inode.pm »
1 # Copyright (c) 2014, cPanel, Inc.
2 # All rights reserved.
3 # http://cpanel.net/
4 #
5 # This is free software; you can redistribute it and/or modify it under the same
6 # terms as Perl itself. See the LICENSE file for further details.
7  
8 package Filesys::POSIX::Directory::Handle;
9  
10 =head1 NAME
11  
12 Filesys::POSIX::Directory::Handle - Basic placeholder for directory file handles
13  
14 =head1 DESCRIPTION
15  
16 This class provides a basic stub that allows for the return of a file handle
17 object based on a directory. These are only meant to be used internally by
18 L<Filesys::POSIX::IO> and currently perform no functions of their own.
19  
20 =cut
21  
22 2 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
23 2 my ($class) = @_;
24  
25 2 return bless {}, $class;
26 }
27  
28 0 ▶sub open {
Subroutine open: not called CC=1 SCAR=6.9
Pod undocumented
29 0 my ($self) = @_;
30  
31 0 return $self;
32 }
33  
34 1 ▶sub close {
Subroutine close: called CC=1 SCAR=0.0
Pod undocumented
35 1 return;
36 }
37  
38 27 1;
39  
40 __END__
« POSIX/Module.pm ↑ Summary POSIX/VFS/Inode.pm »