wr_root/application/lib/wr_model1/models/MasterModel/WarpedId.pl

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 24 / 24 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« wr_root/application/lib/wr_model1/models/MasterModel/ToTrash.pl ↑ Summary wr_root/application/lib/wr_model1/models/MasterModel/WarpedValues.pl »
1 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 use v5.20;
4 use utf8;
5  
6 return [
7 {
8 'element' => [
9 'X',
10 5 ▶ {
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
11 5 ▶ 'choice' => [
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
12 'Av',
13 'Bv',
14 'Cv'
15 3 ],
16 'type' => 'leaf',
17 'value_type' => 'enum'
18 },
19 'Y',
20 '*X',
21 'Z',
22 '*X'
23 ],
24 'name' => 'MasterModel::WarpedIdSlave'
25 },
26 {
27 'element' => [
28 'macro',
29 {
30 'choice' => [
31 'A',
32 'B',
33 'C'
34 ],
35 'type' => 'leaf',
36 'value_type' => 'enum'
37 },
38 'version',
39 {
40 'default' => 1,
41 'type' => 'leaf',
42 'value_type' => 'integer'
43 },
44 'warped_hash',
45 {
46 'cargo' => {
47 'config_class_name' => 'MasterModel::WarpedIdSlave',
48 'type' => 'node'
49 },
50 'index_type' => 'integer',
51 'max_nb' => 3,
52 'type' => 'hash'
53 },
54 'multi_warp',
55 {
56 'cargo' => {
57 'config_class_name' => 'MasterModel::WarpedIdSlave',
58 'type' => 'node'
59 },
60 'default_keys' => [
61 0,
62 1,
63 2,
64 3
65 ],
66 'index_type' => 'integer',
67 'max_index' => 3,
68 'min_index' => 0,
69 'type' => 'hash'
70 },
71 'hash_with_warped_value',
72 {
73 'cargo' => {
74 'type' => 'leaf',
75 'value_type' => 'string',
76 'warp' => {
77 'follow' => {
78 'f1' => '- macro'
79 },
80 'rules' => [
81 {
82 'apply' => {
83 'default' => 'dumb string'
84 },
85 'when' => '$f1 eq \'A\''
86 }
87 ]
88 }
89 },
90 'index_type' => 'string',
91 'type' => 'hash'
92 },
93 'multi_auto_create',
94 {
95 'auto_create_keys' => [
96 0,
97 1,
98 2,
99 3
100 ],
101 'cargo' => {
102 'config_class_name' => 'MasterModel::WarpedIdSlave',
103 'type' => 'node'
104 },
105 'index_type' => 'integer',
106 'max_index' => 3,
107 'min_index' => 0,
108 'type' => 'hash'
109 }
110 ],
111 'level' => {
112 'hidden' => 'hash_with_warped_value'
113 },
114 'name' => 'MasterModel::WarpedId',
115 'warp' => {
116 'hash_with_warped_value' => {
117 'follow' => {
118 'f1' => '- macro'
119 },
120 'rules' => [
121 {
122 'apply' => {
123 'level' => 'normal'
124 },
125 'when' => '$f1 eq \'A\''
126 }
127 ]
128 },
129 'multi_auto_create' => {
130 'follow' => {
131 'f0' => '- version',
132 'f1' => '- macro'
133 },
134 'rules' => [
135 {
136 'apply' => {
137 'auto_create_keys' => [
138 0,
139 1,
140 2,
141 3,
142 4,
143 5,
144 6,
145 7
146 ],
147 'max_index' => 7
148 },
149 'when' => '$f1 eq \'2\' or $f1 eq \'C\''
150 },
151 {
152 'apply' => {
153 'auto_create_keys' => [
154 0,
155 1,
156 2,
157 3,
158 4,
159 5,
160 6,
161 7
162 ],
163 'max_index' => 7
164 },
165 'when' => '$f1 eq \'2\' or $f1 eq \'A\''
166 }
167 ]
168 },
169 'multi_warp' => {
170 'follow' => {
171 'f0' => '- version',
172 'f1' => '- macro'
173 },
174 'rules' => [
175 {
176 'apply' => {
177 'default_keys' => [
178 0,
179 1,
180 2,
181 3,
182 4,
183 5,
184 6,
185 7
186 ],
187 'max_index' => 7
188 },
189 'when' => '$f1 eq \'2\' or $f1 eq \'C\''
190 },
191 {
192 'apply' => {
193 'default_keys' => [
194 0,
195 1,
196 2,
197 3,
198 4,
199 5,
200 6,
201 7
202 ],
203 'max_index' => 7
204 },
205 'when' => '$f1 eq \'2\' or $f1 eq \'A\''
206 }
207 ]
208 },
209 'warped_hash' => {
210 'follow' => {
211 'f1' => '- macro'
212 },
213 'rules' => [
214 {
215 'apply' => {
216 'max_nb' => 2
217 },
218 'when' => '$f1 eq \'B\''
219 },
220 {
221 'apply' => {
222 'max_nb' => 1
223 },
224 'when' => '$f1 eq \'A\''
225 }
226 ]
227 }
228 }
229 }
230 ]
231 ;
« wr_root/application/lib/wr_model1/models/MasterModel/ToTrash.pl ↑ Summary wr_root/application/lib/wr_model1/models/MasterModel/WarpedValues.pl »