Parameters: mapping out the next steps to draft
...I do ''not intend to go into a parameter deep-dive'' yet, but I want to set out the basic capabilities to be expected...
This commit is contained in:
parent
75c0d66b91
commit
8de5a4b475
4 changed files with 148 additions and 5 deletions
|
|
@ -15,3 +15,8 @@ END
|
||||||
PLANNED "Parameter Provision" ParameterProvision_test << END
|
PLANNED "Parameter Provision" ParameterProvision_test << END
|
||||||
return: 0
|
return: 0
|
||||||
END
|
END
|
||||||
|
|
||||||
|
|
||||||
|
PLANNED "Parameter value scales" ParameterScale_test << END
|
||||||
|
return: 0
|
||||||
|
END
|
||||||
|
|
|
||||||
87
tests/lib/par/parameter-scale-test.cpp
Normal file
87
tests/lib/par/parameter-scale-test.cpp
Normal file
|
|
@ -0,0 +1,87 @@
|
||||||
|
/*
|
||||||
|
ParameterScale(Test) - verify parameter value scales
|
||||||
|
|
||||||
|
Copyright (C)
|
||||||
|
2026, Hermann Vosseler <Ichthyostega@web.de>
|
||||||
|
|
||||||
|
**Lumiera** is free software; you can redistribute it and/or modify it
|
||||||
|
under the terms of the GNU General Public License as published by the
|
||||||
|
Free Software Foundation; either version 2 of the License, or (at your
|
||||||
|
option) any later version. See the file COPYING for further details.
|
||||||
|
|
||||||
|
* *****************************************************************/
|
||||||
|
|
||||||
|
/** @file parameter-test.cpp
|
||||||
|
** unit test \ref ParameterScale_test
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#include "test/run.hpp"
|
||||||
|
//#include "test/test-helper.hpp"
|
||||||
|
#include "lib/par/parameter.hpp"
|
||||||
|
#include "test/diagnostic-output.hpp"/////////////TODO
|
||||||
|
|
||||||
|
//#include <utility>
|
||||||
|
//#include <string>
|
||||||
|
//#include <vector>
|
||||||
|
|
||||||
|
//using std::string;
|
||||||
|
//using std::vector;
|
||||||
|
//using std::swap;
|
||||||
|
|
||||||
|
|
||||||
|
namespace lib {
|
||||||
|
namespace par {
|
||||||
|
namespace test{
|
||||||
|
|
||||||
|
// using lumiera::error::LUMIERA_ERROR_LOGIC;
|
||||||
|
|
||||||
|
namespace {//Test fixture....
|
||||||
|
|
||||||
|
}//(End)Test fixture
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**************************************************************************//**
|
||||||
|
* @test cover properties of generic parameter containers.
|
||||||
|
*/
|
||||||
|
class ParameterScale_test : public Test
|
||||||
|
{
|
||||||
|
|
||||||
|
virtual void
|
||||||
|
run (Arg)
|
||||||
|
{
|
||||||
|
simpleUsage();
|
||||||
|
verify_typeMarker();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
simpleUsage()
|
||||||
|
{
|
||||||
|
UNIMPLEMENTED ("nebbich");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/** @test
|
||||||
|
* @todo WIP 9/26 🔁 define ⟶ implement
|
||||||
|
*/
|
||||||
|
void
|
||||||
|
verify_typeMarker()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/** Register this test class... */
|
||||||
|
LAUNCHER (ParameterScale_test, "unit lib");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}}} // namespace lib::par::test
|
||||||
|
|
@ -58,7 +58,10 @@ namespace test{
|
||||||
run (Arg)
|
run (Arg)
|
||||||
{
|
{
|
||||||
simpleUsage();
|
simpleUsage();
|
||||||
verify_typeMarker();
|
verify_Builder();
|
||||||
|
verify_Identity();
|
||||||
|
verify_ParamType();
|
||||||
|
verify_Automation();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -79,8 +82,38 @@ namespace test{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/** @test
|
||||||
|
* @todo WIP 9/26 🔁 define ⟶ implement
|
||||||
|
*/
|
||||||
void
|
void
|
||||||
verify_typeMarker()
|
verify_Builder()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/** @test
|
||||||
|
* @todo WIP 9/26 🔁 define ⟶ implement
|
||||||
|
*/
|
||||||
|
void
|
||||||
|
verify_Identity()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/** @test
|
||||||
|
* @todo WIP 9/26 🔁 define ⟶ implement
|
||||||
|
*/
|
||||||
|
void
|
||||||
|
verify_ParamType()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/** @test
|
||||||
|
* @todo WIP 9/26 🔁 define ⟶ implement
|
||||||
|
*/
|
||||||
|
void
|
||||||
|
verify_Automation()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -85246,6 +85246,18 @@
|
||||||
<node BACKGROUND_COLOR="#174956" COLOR="#8dfd49" CREATED="1788313090668" ID="ID_684424843" MODIFIED="1788313179645" STYLE="bubble" TEXT="erster einfachster Testfall GRÜN">
|
<node BACKGROUND_COLOR="#174956" COLOR="#8dfd49" CREATED="1788313090668" ID="ID_684424843" MODIFIED="1788313179645" STYLE="bubble" TEXT="erster einfachster Testfall GRÜN">
|
||||||
<edge COLOR="#61fe5b" STYLE="bezier" WIDTH="thin"/>
|
<edge COLOR="#61fe5b" STYLE="bezier" WIDTH="thin"/>
|
||||||
</node>
|
</node>
|
||||||
|
<node BACKGROUND_COLOR="#d2beaf" COLOR="#5c4d6e" CREATED="1788651832213" ID="ID_820925379" MODIFIED="1788651847845" TEXT="verify_Builder">
|
||||||
|
<icon BUILTIN="hourglass"/>
|
||||||
|
</node>
|
||||||
|
<node BACKGROUND_COLOR="#d2beaf" COLOR="#5c4d6e" CREATED="1788651832214" ID="ID_613414026" MODIFIED="1788651847846" TEXT="verify_Identity">
|
||||||
|
<icon BUILTIN="hourglass"/>
|
||||||
|
</node>
|
||||||
|
<node BACKGROUND_COLOR="#d2beaf" COLOR="#5c4d6e" CREATED="1788651832214" ID="ID_11918736" MODIFIED="1788651847848" TEXT="verify_ParamType">
|
||||||
|
<icon BUILTIN="hourglass"/>
|
||||||
|
</node>
|
||||||
|
<node BACKGROUND_COLOR="#d2beaf" COLOR="#5c4d6e" CREATED="1788651832214" ID="ID_1525078992" MODIFIED="1788651847850" TEXT="verify_Automation">
|
||||||
|
<icon BUILTIN="hourglass"/>
|
||||||
|
</node>
|
||||||
</node>
|
</node>
|
||||||
</node>
|
</node>
|
||||||
</node>
|
</node>
|
||||||
|
|
@ -85253,9 +85265,15 @@
|
||||||
</node>
|
</node>
|
||||||
<node CREATED="1783093092796" ID="ID_1726265613" MODIFIED="1783093108821" TEXT="intendierte Verwendung">
|
<node CREATED="1783093092796" ID="ID_1726265613" MODIFIED="1783093108821" TEXT="intendierte Verwendung">
|
||||||
<node CREATED="1783093125033" ID="ID_1254949400" MODIFIED="1783093128185" TEXT="use-cases">
|
<node CREATED="1783093125033" ID="ID_1254949400" MODIFIED="1783093128185" TEXT="use-cases">
|
||||||
<node CREATED="1783093317856" ID="ID_856771096" MODIFIED="1783093324150" TEXT="get<TY>()"/>
|
<node CREATED="1783093317856" ID="ID_856771096" MODIFIED="1788649816399" TEXT="getVal<TY>()"/>
|
||||||
<node CREATED="1783093436187" ID="ID_136990462" MODIFIED="1783093443517" TEXT="set(TY newVal)"/>
|
<node CREATED="1783093436187" ID="ID_136990462" MODIFIED="1788649820630" TEXT="setVall(TY newVal)"/>
|
||||||
<node CREATED="1783093767301" ID="ID_1335018454" MODIFIED="1783093803789" TEXT="Param::build<TY>(val=TY{})"/>
|
<node CREATED="1788649787926" ID="ID_1985200496" MODIFIED="1788649796938" TEXT="pull<TY>(Time)"/>
|
||||||
|
<node CREATED="1788649742924" ID="ID_28367962" MODIFIED="1788649744457" TEXT="Builder">
|
||||||
|
<node CREATED="1783093767301" ID="ID_1335018454" MODIFIED="1788649727203" TEXT="Parameter::forType<TY>()"/>
|
||||||
|
<node CREATED="1788649685467" ID="ID_1301553785" MODIFIED="1788649723800" TEXT="Parameter::forValue(VAL&&)"/>
|
||||||
|
<node CREATED="1788649712657" ID="ID_1615160500" MODIFIED="1788649741347" TEXT="parameter::from(prototype)"/>
|
||||||
|
<node CREATED="1788650438807" ID="ID_563553509" MODIFIED="1788650446141" TEXT="Scale festlegen"/>
|
||||||
|
</node>
|
||||||
<node BACKGROUND_COLOR="#d2beaf" COLOR="#5c4d6e" CREATED="1783093472793" ID="ID_1689475149" MODIFIED="1783093761099" TEXT="adjust (Control<X>)">
|
<node BACKGROUND_COLOR="#d2beaf" COLOR="#5c4d6e" CREATED="1783093472793" ID="ID_1689475149" MODIFIED="1783093761099" TEXT="adjust (Control<X>)">
|
||||||
<icon BUILTIN="hourglass"/>
|
<icon BUILTIN="hourglass"/>
|
||||||
<node BACKGROUND_COLOR="#f0d5c5" COLOR="#990033" CREATED="1788570496914" HGAP="48" ID="ID_1707877834" MODIFIED="1788570548906" TEXT="was hab ich damit gemeint?? wohl einen Manipulator?" VSHIFT="4">
|
<node BACKGROUND_COLOR="#f0d5c5" COLOR="#990033" CREATED="1788570496914" HGAP="48" ID="ID_1707877834" MODIFIED="1788570548906" TEXT="was hab ich damit gemeint?? wohl einen Manipulator?" VSHIFT="4">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue