wr_root/itself/lib/wr_from_perl_files/models/MasterModel/WarpedId.pl

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