| 45 | }; |
| 46 | |
| 47 | TEST_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. |
nothing calls this directly
no test coverage detected