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

Function TEST_F

engine/script/src/test/test_script_table.cpp:47–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45};
46
47TEST_F(LuaTableTest, EmptyTable)
48{
49 lua_newtable(L);
50 char DM_ALIGNED(16) buf[8 + 4];
51 uint32_t buffer_used = dmScript::CheckTable(L, buf, sizeof(buf), -1);
52 // 4 bytes for count
53 ASSERT_EQ(12U, buffer_used);
54 lua_pop(L, 1);
55}
56
57/**
58 * A helper function used when validating serialized data in original or v1 format.

Callers

nothing calls this directly

Calls 15

CheckTableFunction · 0.85
lua_cpcallFunction · 0.85
dmSnPrintfFunction · 0.85
lua_pushnumberFunction · 0.85
lua_settableFunction · 0.85
PushTableFunction · 0.85
lua_pushnilFunction · 0.85
lua_nextFunction · 0.85
lua_tonumberFunction · 0.85
lua_pushintegerFunction · 0.85
lua_setfieldFunction · 0.85
lua_getfieldFunction · 0.85

Tested by

no test coverage detected