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

filter: Statementstmt 100% 20 / 20 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 26 / 26 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/HashIdOfValues.pl ↑ Summary wr_root/application/lib/wr_model1/models/MasterModel/ToTrash.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;
4 use utf8;
5  
6 return [
7 {
8 'element' => [
9 {
10 5 ▶ 'cargo' => {
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
11 5 ▶ 'config_class_name' => 'MasterModel::References::If',
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
12 'type' => 'node'
13 },
14 'index_type' => 'string',
15 3 'name' => 'if',
16 'type' => 'hash'
17 },
18 {
19 'name' => 'trap',
20 'type' => 'leaf',
21 'value_type' => 'string'
22 }
23 ],
24 'name' => 'MasterModel::References::Host'
25 },
26 {
27 'element' => [
28 {
29 'name' => 'ip',
30 'type' => 'leaf',
31 'value_type' => 'string'
32 }
33 ],
34 'name' => 'MasterModel::References::If'
35 },
36 {
37 'element' => [
38 {
39 'cargo' => {
40 'config_class_name' => 'MasterModel::References::Node',
41 'type' => 'node'
42 },
43 'index_type' => 'string',
44 'name' => 'node',
45 'type' => 'hash'
46 }
47 ],
48 'name' => 'MasterModel::References::Lan'
49 },
50 {
51 'element' => [
52 {
53 'name' => 'host',
54 'refer_to' => '- host',
55 'type' => 'leaf',
56 'value_type' => 'reference'
57 },
58 {
59 'computed_refer_to' => {
60 'formula' => ' - host:$h if ',
61 'variables' => {
62 'h' => '- host'
63 }
64 },
65 'name' => 'if',
66 'type' => 'leaf',
67 'value_type' => 'reference'
68 },
69 {
70 'compute' => {
71 'formula' => '$ip',
72 'variables' => {
73 'card' => '- if',
74 'h' => '- host',
75 'ip' => '- host:$h if:$card ip'
76 }
77 },
78 'name' => 'ip',
79 'type' => 'leaf',
80 'value_type' => 'string'
81 }
82 ],
83 'name' => 'MasterModel::References::Node'
84 },
85 {
86 'element' => [
87 {
88 'cargo' => {
89 'config_class_name' => 'MasterModel::References::Host',
90 'type' => 'node'
91 },
92 'index_type' => 'string',
93 'name' => 'host',
94 'type' => 'hash'
95 },
96 {
97 'cargo' => {
98 'config_class_name' => 'MasterModel::References::Lan',
99 'type' => 'node'
100 },
101 'index_type' => 'string',
102 'name' => 'lan',
103 'type' => 'hash'
104 },
105 {
106 'choice' => [
107 'foo',
108 'bar'
109 ],
110 'name' => 'host_and_choice',
111 'refer_to' => '- host ',
112 'type' => 'leaf',
113 'value_type' => 'reference'
114 },
115 {
116 'cargo' => {
117 'type' => 'leaf',
118 'value_type' => 'string'
119 },
120 'name' => 'dumb_list',
121 'type' => 'list'
122 },
123 {
124 'name' => 'refer_to_list_enum',
125 'refer_to' => '- dumb_list',
126 'type' => 'leaf',
127 'value_type' => 'reference'
128 }
129 ],
130 'name' => 'MasterModel::References'
131 }
132 ]
133 ;
« wr_root/application/lib/wr_model1/models/MasterModel/HashIdOfValues.pl ↑ Summary wr_root/application/lib/wr_model1/models/MasterModel/ToTrash.pl »