ProgressMonitor/State.pm

filter: Statementstmt 100% 11 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 14 / 14 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« ProgressMonitor/SetMessageFlags.pm ↑ Summary ProgressMonitor/Stringify/Fields/AbstractField.pm »
1 package ProgressMonitor::State;
2
3 10 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 10 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5
6 # This defines the values used to track state for monitors - used by
7 # AbstractStatefulMonitor
8 #
9
10 10 ▶use Exporter qw(import);
Subroutine BEGIN: called CC=1 SCAR=0.0
11 10 our @EXPORT = qw(STATE_NEW STATE_PREPARING STATE_ACTIVE STATE_DONE);
12
13 # This state is when the monitor is just created
14 #
15 sub STATE_NEW () { 0 }
16
17 # The monitor has been told that the task is preparing
18 #
19 sub STATE_PREPARING () { 1 }
20
21 # The task has now begun its main work
22 #
23 sub STATE_ACTIVE () { 2 }
24
25 # The task is done
26 #
27 sub STATE_DONE () { 3 }
28
29 10 1;
« ProgressMonitor/SetMessageFlags.pm ↑ Summary ProgressMonitor/Stringify/Fields/AbstractField.pm »