Common/Status.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/Sort.pm ↑ Summary Common/Timezone.pm »
1 package Enum::Declare::Common::Status;
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 Lifecycle :Str :Type :Export {
10 Pending = "pending",
11 Active = "active",
12 Inactive = "inactive",
13 Suspended = "suspended",
14 Deleted = "deleted",
15 Archived = "archived"
16 1 };
17  
18 1 1;
19  
20 =head1 NAME
21  
22 Enum::Declare::Common::Status - Lifecycle status string constants
23  
24 =head1 SYNOPSIS
25  
26 use Enum::Declare::Common::Status;
27  
28 say Pending; # "pending"
29 say Active; # "active"
30 say Archived; # "archived"
31  
32 my $meta = Lifecycle();
33 ok($meta->valid('active'));
34  
35 =head1 ENUMS
36  
37 =head2 Lifecycle :Str :Export
38  
39 Pending="pending", Active="active", Inactive="inactive",
40 Suspended="suspended", Deleted="deleted", Archived="archived".
41  
42 =head1 AUTHOR
43  
44 LNATION C<< <email@lnation.org> >>
45  
46 =head1 LICENSE AND COPYRIGHT
47  
48 Copyright 2026 LNATION. Artistic License 2.0.
49  
50 =cut
« Common/Sort.pm ↑ Summary Common/Timezone.pm »