Hopkins/Constants.pm untested

filter: Statementstmt 0.0% 0 / 47 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 15 Podpod n/a totaltotal 0.0% 0 / 62 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Hopkins::Constants;
2  
3 use strict;
4 use warnings;
5  
6 =head1 NAME
7  
8 Hopkins::Constants - hopkins constants
9  
10 =head1 DESCRIPTION
11  
12 Hopkins::Constants takes care of exporting subroutines to
13 the caller's namespace for any of the particular constants
14 used throughout the system.
15  
16 =cut
17  
18 require Exporter;
19  
20 our @ISA = qw(Exporter);
21  
22 our @EXPORT =
23 qw/
24 HOPKINS_ENQUEUE_OK
25 HOPKINS_ENQUEUE_TASK_NOT_FOUND
26 HOPKINS_ENQUEUE_TASK_STACK_LIMIT
27 HOPKINS_ENQUEUE_QUEUE_FROZEN
28 HOPKINS_ENQUEUE_QUEUE_UNAVAILABLE
29 HOPKINS_ENQUEUE_DATETIME_INVALID
30 HOPKINS_QUEUE_ALREADY_RUNNING
31 HOPKINS_QUEUE_STARTED
32 HOPKINS_QUEUE_NOT_FOUND
33 HOPKINS_QUEUE_RUNNING
34 HOPKINS_QUEUE_STATUS_IDLE
35 HOPKINS_QUEUE_STATUS_RUNNING
36 HOPKINS_QUEUE_STATUS_HALTED
37 /;
38  
39 use constant HOPKINS_ENQUEUE_OK => 1;
40 use constant HOPKINS_ENQUEUE_TASK_NOT_FOUND => 2;
41 use constant HOPKINS_ENQUEUE_TASK_STACK_LIMIT => 3;
42 use constant HOPKINS_ENQUEUE_QUEUE_FROZEN => 4;
43 use constant HOPKINS_ENQUEUE_QUEUE_UNAVAILABLE => 5;
44 use constant HOPKINS_ENQUEUE_DATETIME_INVALID => 6;
45  
46 use constant HOPKINS_QUEUE_ALREADY_RUNNING => 1;
47 use constant HOPKINS_QUEUE_STARTED => 2;
48 use constant HOPKINS_QUEUE_NOT_FOUND => 3;
49  
50 use constant HOPKINS_QUEUE_STATUS_IDLE => 1;
51 use constant HOPKINS_QUEUE_STATUS_RUNNING => 2;
52 use constant HOPKINS_QUEUE_STATUS_HALTED => 3;
53  
54 =back
55  
56 =head1 AUTHOR
57  
58 Mike Eldridge <diz@cpan.org>
59  
60 =head1 LICENSE
61  
62 =cut
63  
64 1;