MCPcopy Create free account
hub / github.com/OpenMW/openmw / asVector

Function asVector

apps/components_tests/lua/testconfiguration.cpp:21–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19 using testing::Pair;
20
21 std::vector<std::pair<int, std::string>> asVector(const LuaUtil::ScriptIdsWithInitializationData& d)
22 {
23 std::vector<std::pair<int, std::string>> res;
24 for (const auto& [k, v] : d)
25 res.emplace_back(k, std::string(v));
26 return res;
27 }
28
29 TEST(LuaConfigurationTest, ValidOMWScripts)
30 {

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected