| 155 | } |
| 156 | |
| 157 | TEST_F(ProfilerExtLuaTest, ScopeEndWithoutBeginRaisesLuaError) |
| 158 | { |
| 159 | ASSERT_TRUE(RunString( |
| 160 | "local ok, err = pcall(function() profiler.scope_end() end)\n" |
| 161 | "assert(not ok)\n" |
| 162 | "assert(string.find(err, \"profiler.scope_end() called without a matching profiler.scope_begin()\", 1, true))\n")); |
| 163 | } |
| 164 | |
| 165 | TEST_F(ProfilerExtLuaTest, UnclosedScopesAreAutoClosedOnPreRender) |
| 166 | { |
nothing calls this directly
no test coverage detected