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

Method AppendToLog

engine/script/src/test/test_script.cpp:116–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116void ScriptTest::AppendToLog(const char* log)
117{
118 if (strstr(log, "Log server started on port") != 0)
119 return;
120 uint32_t len = strlen(log);
121 m_Log.SetCapacity(m_Log.Size() + len + 1);
122 m_Log.PushArray(log, len);
123}
124
125bool ScriptTest::RunFile(lua_State* L, const char* filename)
126{

Callers 1

LogCallbackFunction · 0.45

Calls 3

PushArrayMethod · 0.80
SetCapacityMethod · 0.45
SizeMethod · 0.45

Tested by

no test coverage detected