lib/Config/Model/models/Itself/ComputedValue.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/WarpableElement.pl ↑ Summary wr_root/application/lib/wr_model1/models/MasterModel.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 10 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
11 10 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
12  
13 return [
14 [
15 6 name => "Itself::ComputedValue",
16 include => "Itself::MigratedValue" ,
17  
18 element => [
19 allow_override => {
20 type => 'leaf',
21 value_type => 'boolean',
22 compute => {
23 formula => '$upstream_knowns',
24 variables => {
25 upstream_knowns => '- use_as_upstream_default',
26 },
27 use_as_upstream_default => 1,
28 },
29 level => 'normal',
30 description => "Allow user to override computed value"
31 .'For more details, see L<doc|Config::Model::ValueComputer.pm/"compute override"> ',,
32 },
33  
34 use_as_upstream_default => {
35 type => 'leaf',
36 value_type => 'boolean',
37 upstream_default => 0,
38 level => 'normal',
39 description => "Indicate that the computed value is known by the "
40 ."application and does not need to be written in the configuration file. Implies allow_override."
41 },
42 ],
43  
44 ],
45  
46 ];
« blib/lib/Config/Model/models/Itself/WarpableElement.pl ↑ Summary wr_root/application/lib/wr_model1/models/MasterModel.pl »