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

Function TEST_F

apps/components_tests/lua/testscriptscontainer.cpp:240–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238 };
239
240 TEST_F(LuaScriptsContainerTest, addCustomScriptShouldNotStartInvalidScript)
241 {
242 LuaUtil::ScriptsContainer scripts(&mLua, "Test");
243 testing::internal::CaptureStdout();
244 EXPECT_FALSE(scripts.addCustomScript(getId(invalidPath)));
245 std::string output = testing::internal::GetCapturedStdout();
246 EXPECT_THAT(output, HasSubstr("Can't start Test[invalid.lua]"));
247 }
248
249 TEST_F(LuaScriptsContainerTest, addCustomScriptShouldNotSuportScriptsWithInvalidHandlerAndSection)
250 {

Callers

nothing calls this directly

Calls 15

getIdFunction · 0.85
make_objectFunction · 0.85
make_object_userdataFunction · 0.85
parseOMWScriptsFunction · 0.85
addCustomScriptMethod · 0.80
unsafeStateMethod · 0.80
create_table_withMethod · 0.80
receiveEventMethod · 0.80
hasScriptMethod · 0.80
setAutoStartConfMethod · 0.80
getPlayerConfMethod · 0.80
addAutoStartedScriptsMethod · 0.80

Tested by

no test coverage detected