Skip to content
Snippets Groups Projects
Commit dce420b4 authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

extend test slightly (HierarchyModifyingGroup)

parent a04120d3
No related branches found
No related tags found
No related merge requests found
......@@ -61,6 +61,15 @@ struct TestApplication : public ctk::Application {
void mainLoop() override {}
};
TestModule testModule{this, "TestModule", "The test module"};
struct TestModuleHidden : ctk::ApplicationModule {
using ctk::ApplicationModule::ApplicationModule;
TestGroup p{this, "/MoveToRootFromHidden",
"Use like normal VariableGroup with MoveToRoot, and place inside a hidden to-level module", {"TagP"}};
void mainLoop() override {}
};
TestModuleHidden testModuleHidden{
this, "TestModuleHidden", "The hidden test module", ctk::HierarchyModifier::hideThis};
};
/*********************************************************************************************************************/
......@@ -212,6 +221,12 @@ BOOST_AUTO_TEST_CASE(dot_at_end) {
.accessor(app.testModule.o.myVar);
}
BOOST_AUTO_TEST_CASE(MoveToRootFromHidden) {
std::cout << "*** MoveToRootFromHidden" << std::endl;
TestApplication app;
TestHelper(app, "TagP").submodule("MoveToRootFromHidden").accessor(app.testModuleHidden.p.myVar);
}
/*********************************************************************************************************************/
struct TestApplication_empty : public ctk::Application {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment