ZConst.pm

filter: Statementstmt 99.1% 122 / 123 Branchbran n/a Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 97.5% 40 / 41 Podpod 0.0% 0 / 1 totaltotal 96.4% 162 / 168 CC 2 SCAR 2.1
CC
2
Cov
98%
color_code_to_name
6.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« manual_install.pl ↑ Summary Inliner.pm »
1 package Games::Rezrov::ZConst;
2 # constants
3  
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use constant ASCII_DEL => 0x7f;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use constant ASCII_BS => 0x08;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use constant ASCII_LF => 0x0a;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use constant ASCII_CR => 0x0d;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use constant ASCII_SPACE => 0x20;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 1 ▶use constant LOWER_WIN => 0;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 1 ▶use constant UPPER_WIN => 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 1 ▶use constant STYLE_ROMAN => 0;
Subroutine BEGIN: called CC=1 SCAR=0.0
16 1 ▶use constant STYLE_REVERSE => 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
17 1 ▶use constant STYLE_BOLD => 2;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 1 ▶use constant STYLE_ITALIC => 4;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 1 ▶use constant STYLE_FIXED => 8;
Subroutine BEGIN: called CC=1 SCAR=0.0
20 # sect15.html#set_text_style
21  
22 1 ▶use constant STREAM_SCREEN => 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
23 # 7.1.1
24 1 ▶use constant STREAM_TRANSCRIPT => 2;
Subroutine BEGIN: called CC=1 SCAR=0.0
25 1 ▶use constant STREAM_REDIRECT => 3;
Subroutine BEGIN: called CC=1 SCAR=0.0
26 # 7.1.2.1
27 1 ▶use constant STREAM_COMMANDS => 4;
Subroutine BEGIN: called CC=1 SCAR=0.0
28 # 7.1.2.3
29 1 ▶use constant STREAM_STEAL => 5;
Subroutine BEGIN: called CC=1 SCAR=0.0
30 # local: when redirecting screen output; when active send
31 # output here instead of to screen
32  
33 1 ▶use constant INPUT_KEYBOARD => 0;
Subroutine BEGIN: called CC=1 SCAR=0.0
34 1 ▶use constant INPUT_FILE => 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
35 # 10.2
36  
37 # 3.8, table 2:
38 1 ▶use constant Z_NEWLINE => 13;
Subroutine BEGIN: called CC=1 SCAR=0.0
39 1 ▶use constant Z_DELETE => 8;
Subroutine BEGIN: called CC=1 SCAR=0.0
40 1 ▶use constant Z_UP => 129;
Subroutine BEGIN: called CC=1 SCAR=0.0
41 1 ▶use constant Z_DOWN => 130;
Subroutine BEGIN: called CC=1 SCAR=0.0
42 1 ▶use constant Z_LEFT => 131;
Subroutine BEGIN: called CC=1 SCAR=0.0
43 1 ▶use constant Z_RIGHT => 132;
Subroutine BEGIN: called CC=1 SCAR=0.0
44  
45 # 8.3.1:
46 1 ▶use constant COLOR_CURRENT => 0;
Subroutine BEGIN: called CC=1 SCAR=0.0
47 1 ▶use constant COLOR_DEFAULT => 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
48  
49 1 ▶use constant COLOR_BLACK => 2;
Subroutine BEGIN: called CC=1 SCAR=0.0
50 1 ▶use constant COLOR_RED => 3;
Subroutine BEGIN: called CC=1 SCAR=0.0
51 1 ▶use constant COLOR_GREEN => 4;
Subroutine BEGIN: called CC=1 SCAR=0.0
52 1 ▶use constant COLOR_YELLOW => 5;
Subroutine BEGIN: called CC=1 SCAR=0.0
53 1 ▶use constant COLOR_BLUE => 6;
Subroutine BEGIN: called CC=1 SCAR=0.0
54 1 ▶use constant COLOR_MAGENTA => 7;
Subroutine BEGIN: called CC=1 SCAR=0.0
55 1 ▶use constant COLOR_CYAN => 8;
Subroutine BEGIN: called CC=1 SCAR=0.0
56 1 ▶use constant COLOR_WHITE => 9;
Subroutine BEGIN: called CC=1 SCAR=0.0
57  
58 # 8.1.2:
59 1 ▶use constant FONT_NORMAL => 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
60 1 ▶use constant FONT_PICTURE => 2;
Subroutine BEGIN: called CC=1 SCAR=0.0
61 1 ▶use constant FONT_CHAR_GRAPHICS => 3;
Subroutine BEGIN: called CC=1 SCAR=0.0
62 1 ▶use constant FONT_FIXED => 4;
Subroutine BEGIN: called CC=1 SCAR=0.0
63  
64 1 my %COLOR_MAP = (COLOR_BLACK() => "black",
65 COLOR_RED() => "red",
66 COLOR_GREEN() => "green",
67 COLOR_YELLOW() => "yellow",
68 COLOR_BLUE() => "blue",
69 COLOR_MAGENTA() => "magenta",
70 COLOR_CYAN() => "cyan",
71 COLOR_WHITE() => "white");
72  
73 0 ▶sub color_code_to_name {
Subroutine color_code_to_name: not called CC=2 SCAR=17.9
Pod undocumented
74 0 ▶ return $COLOR_MAP{$_[0]} || undef;
Condition0%0/2
$COLOR_MAP{$_[0]} || undef
l!l
00
MC/DC0%0/1
$COLOR_MAP{$_[0]} || undef
$COLOR_MAP{$_[0]}
Truth table0%0/2
A
A= $COLOR_MAP{$_[0]}
Aresult
11
00
75 }
76  
77 1 1;
« manual_install.pl ↑ Summary Inliner.pm »