MCPcopy Create free account
hub / github.com/defold/defold / TEST_F

Function TEST_F

engine/engine/src/test/test_profilerext_lua.cpp:157–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157TEST_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
165TEST_F(ProfilerExtLuaTest, UnclosedScopesAreAutoClosedOnPreRender)
166{

Callers

nothing calls this directly

Calls 5

PreRenderFunction · 0.85
lua_tothreadFunction · 0.85
GetMainThreadFunction · 0.85
FinalizeExtensionFunction · 0.85
RunStringFunction · 0.50

Tested by

no test coverage detected