MCPcopy Create free account
hub / github.com/OpenHD/OpenHD / create_dummy_ground_settings

Method create_dummy_ground_settings

OpenHD/ohd_common/src/openhd_settings_imp.cpp:44–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44std::vector<openhd::Setting> openhd::testing::create_dummy_ground_settings() {
45 std::vector<openhd::Setting> ret = {
46 openhd::Setting{"GROUND_X", openhd::IntSetting{10, nullptr}},
47 openhd::Setting{"GROUND_Y", openhd::IntSetting{1, nullptr}},
48 /*openhd::Setting{"SOME_INT",0},
49 openhd::Setting{"SOME_FLOAT",0.0f},
50 openhd::Setting{"SOME_STRING",std::string("hello")}*/
51 };
52 return ret;
53}
54
55void openhd::testing::append_dummy_if_empty(std::vector<Setting>& ret) {
56 if (ret.empty()) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected