| 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 | { |
nothing calls this directly
no test coverage detected