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 44 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 44 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 44 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7
8 44 our $VERSION = '2.000002';
9 44 $VERSION =~ tr/_//d;
10 44 our $AUTHORITY = 'cpan:BRICKPOOL';
11
12 44 ▶use Exporter 'import';
Subroutine BEGIN: called CC=1 SCAR=0.0
13
14 44 our @EXPORT_OK = qw(
15 );
16
17 44 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 44 my %seen;
36 push
37 @EXPORT_OK,
38 220 grep {!$seen{$_}++} @{$EXPORT_TAGS{$_}}
39 44 foreach keys %EXPORT_TAGS;
40 push
41 44 @{$EXPORT_TAGS{all}},
42 @EXPORT_OK;
43 }
44
45 44 ▶use constant cpMenuView => "\x02\x03\x04\x05\x06\x07";
Subroutine BEGIN: called CC=1 SCAR=0.0
46
47 44 ▶use constant cpStatusLine => "\x02\x03\x04\x05\x06\x07";
Subroutine BEGIN: called CC=1 SCAR=0.0
48
49 # Constants for menuAction
50 44 ▶use constant {
Subroutine BEGIN: called CC=1 SCAR=0.0
51 44 doNothing => 0,
52 doSelect => 1,
53 doReturn => 2,
54 44 };
55
56 44 1
57
58 __END__
« lib/TUI/Help.pm ↑ Summary lib/TUI/MsgBox/Const.pm »