blib/lib/Config/Model/models/Itself/WarpOnlyElement.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
« blib/lib/Config/Model/models/Itself/NonWarpableElement.pl ↑ Summary blib/lib/Config/Model/models/Itself/WarpValue.pl »
1 1 ▶#
Subroutine BEGIN: called CC=1 SCAR=0.0
2 1 ▶# This file is part of Config-Model-Itself
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 #
4 # This software is Copyright (c) 2007-2026 by Dominique Dumont.
5 #
6 # This is free software, licensed under:
7 #
8 # The GNU Lesser General Public License, Version 2.1, February 1999
9 #
10 9 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
11 9 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 return [
14 [
15 5 name => "Itself::WarpOnlyElement",
16  
17 class_description => 'these properties as the same as the ones in Element model, minus '.
18 'the upstream_default and mandatory properties.',
19  
20 include => 'Itself::WarpableElement' ,
21  
22 'element' => [
23 'level' => {
24 type => 'leaf',
25 value_type => 'enum',
26 choice => [qw/important normal hidden/] ,
27 },
28  
29 'index_type' => {
30 type => 'leaf',
31 value_type => 'enum',
32 level => 'hidden' ,
33 warp => {
34 follow => { type => '?type'},
35 'rules' => [
36 {
37 when => '$type eq "hash"',
38 apply => {
39 level => 'important',
40 #mandatory => 1,
41 choice => [qw/string integer/] ,
42 }
43 }
44 ]
45 },
46 description => 'Specify the type of allowed index for the hash. "String" means no restriction.',
47 },
48 ],
49  
50 'description' => [
51 level => 'Used to highlight important parameter or to hide others. Hidden parameter are mostly used to hide features that are unavailable at start time. They can be made available later using warp mechanism',
52 ],
53 ],
54 ];
« blib/lib/Config/Model/models/Itself/NonWarpableElement.pl ↑ Summary blib/lib/Config/Model/models/Itself/WarpValue.pl »