lib/TUI/Menus/Const.pm

filter: Statementstmt 100% 33 / 33 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod n/a totaltotal 100% 40 / 40 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/TUI/Help.pm ↑ Summary lib/TUI/MsgBox/Const.pm »
1 package TUI::Menus::Const;
2 # ABSTRACT: constants for menu classes
3
4 60 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 60 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 60 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7
8 60 our $VERSION = '2.000002';
9 60 $VERSION =~ tr/_//d;
10 60 our $AUTHORITY = 'cpan:BRICKPOOL';
11
12 60 ▶use Exporter 'import';
Subroutine BEGIN: called CC=1 SCAR=0.0
13
14 60 our @EXPORT_OK = qw(
15 );
16
17 60 our %EXPORT_TAGS = (
18
19 cpXXXX => [qw(
20 cpMenuView
21 cpStatusLine
22 )],
23
24 menuAction => [qw(
25 doNothing
26 doSelect
27 doReturn
28 )],
29
30 );
31
32 # add all the other %EXPORT_TAGS ":class" tags to the ":all" class and
33 # @EXPORT_OK, deleting duplicates
34 {
35 60 my %seen;
36 push
37 @EXPORT_OK,
38 300 grep {!$seen{$_}++} @{$EXPORT_TAGS{$_}}
39 60 foreach keys %EXPORT_TAGS;
40 push
41 60 @{$EXPORT_TAGS{all}},
42 @EXPORT_OK;
43 }
44
45 60 ▶use constant cpMenuView => "\x02\x03\x04\x05\x06\x07";
Subroutine BEGIN: called CC=1 SCAR=0.0
46
47 60 ▶use constant cpStatusLine => "\x02\x03\x04\x05\x06\x07";
Subroutine BEGIN: called CC=1 SCAR=0.0
48
49 # Constants for menuAction
50 60 ▶use constant {
Subroutine BEGIN: called CC=1 SCAR=0.0
51 60 doNothing => 0,
52 doSelect => 1,
53 doReturn => 2,
54 60 };
55
56 60 1
57
58 __END__
« lib/TUI/Help.pm ↑ Summary lib/TUI/MsgBox/Const.pm »