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