| 42 | } |
| 43 | |
| 44 | std::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 | |
| 55 | void openhd::testing::append_dummy_if_empty(std::vector<Setting>& ret) { |
| 56 | if (ret.empty()) { |
nothing calls this directly
no outgoing calls
no test coverage detected