File Coverage

blib/lib/Enum/Declare/Common/Status.pm
Criterion Covered Total %
statement 11 11 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 15 15 100.0


line stmt bran cond sub pod time code
1             package Enum::Declare::Common::Status;
2              
3 1     1   129424 use 5.014;
  1         4  
4 1     1   8 use strict;
  1         2  
  1         34  
5 1     1   5 use warnings;
  1         3  
  1         72  
6              
7 1     1   554 use Enum::Declare;
  1         14836  
  1         238  
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             };
17              
18             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<< >>
45              
46             =head1 LICENSE AND COPYRIGHT
47              
48             Copyright 2026 LNATION. Artistic License 2.0.
49              
50             =cut