Common/FileType.pm

filter: Statementstmt 100% 13 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 17 / 17 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Common/Environment.pm ↑ Summary Common/Locale.pm »
1 package Enum::Declare::Common::FileType;
2  
3 1 ▶use 5.014;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶use Enum::Declare;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 enum Type :Str :Type :Export {
10 File = "file",
11 Directory = "directory",
12 Symlink = "symlink",
13 Socket = "socket",
14 Pipe = "pipe",
15 Block = "block",
16 Char = "char"
17 1 };
18  
19 1 1;
20  
21 =head1 NAME
22  
23 Enum::Declare::Common::FileType - File type constants
24  
25 =head1 SYNOPSIS
26  
27 use Enum::Declare::Common::FileType;
28  
29 say File; # "file"
30 say Directory; # "directory"
31 say Symlink; # "symlink"
32  
33 =head1 ENUMS
34  
35 =head2 Type :Str :Export
36  
37 File="file", Directory="directory", Symlink="symlink", Socket="socket",
38 Pipe="pipe", Block="block", Char="char".
39  
40 =head1 AUTHOR
41  
42 LNATION C<< <email@lnation.org> >>
43  
44 =head1 LICENSE AND COPYRIGHT
45  
46 Copyright 2026 LNATION. Artistic License 2.0.
47  
48 =cut
« Common/Environment.pm ↑ Summary Common/Locale.pm »