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

Function TEST_F

engine/script/src/test/test_script_lua.cpp:61–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61TEST_F(ScriptTestLua, TestPrint)
62{
63 int top = lua_gettop(L);
64 ASSERT_TRUE(RunString(L, "print(\"test print\")"));
65 ASSERT_TRUE(RunString(L, "print(\"test\", \"multiple\")"));
66
67 char* log = GetLog();
68
69 ASSERT_EQ(top, lua_gettop(L));
70#if defined(DM_NO_HTTP_CACHE)
71 ASSERT_STREQ("WARNING:SCRIPT: Http cache disabled\nDEBUG:SCRIPT: test print\nDEBUG:SCRIPT: test\tmultiple\n", log);
72#else
73 ASSERT_STREQ("DEBUG:SCRIPT: test print\nDEBUG:SCRIPT: test\tmultiple\n", log);
74#endif
75}
76
77TEST_F(ScriptTestLua, TestPPrint)
78{

Callers

nothing calls this directly

Calls 15

lua_gettopFunction · 0.85
RemoveTableAddressesFunction · 0.85
luaL_checktypeFunction · 0.85
PCallFunction · 0.85
lua_touserdataFunction · 0.85
GetMainThreadFunction · 0.85
lua_statusFunction · 0.85
lua_tothreadFunction · 0.85
RegisterUserTypeFunction · 0.85
lua_newuserdataFunction · 0.85
lua_setmetatableFunction · 0.85
RefFunction · 0.85

Tested by

no test coverage detected