Skip to content

Savestate fixes

Savestate fixes #260

GitHub Actions / TASmod Tests succeeded Jul 20, 2024 in 0s

153 passed, 0 failed and 7 skipped

Tests passed successfully

Report Passed Failed Skipped Time
TEST-mctcommon.event.EventTest.xml 8✅ 18ms
TEST-mctcommon.server.ByteBufferBuilderTest.xml 15✅ 32ms
TEST-mctcommon.server.ServerTest.xml 7⚪ 6ms
TEST-mctcommon.TestConfiguration.xml 7✅ 46ms
TEST-tasmod.networking.TASmodByteBufferBuilderTest.xml 1✅ 543ms
TEST-tasmod.playback.metadata.PlaybackMetadataRegistryTest.xml 1✅ 7ms
TEST-tasmod.playback.metadata.PlaybackMetadataTest.xml 6✅ 6ms
TEST-tasmod.playback.tasfile.PlaybackSerialiserTest.xml 5✅ 88ms
TEST-tasmod.playback.tasfile.SerialiserFlavorBaseTest.xml 36✅ 115ms
TEST-tasmod.virtual.VirtualCameraAngleTest.xml 14✅ 26ms
TEST-tasmod.virtual.VirtualInputEventFiring.xml 2✅ 3ms
TEST-tasmod.virtual.VirtualInputTest.xml 11✅ 32ms
TEST-tasmod.virtual.VirtualKeyboardTest.xml 25✅ 61ms
TEST-tasmod.virtual.VirtualMouseTest.xml 22✅ 31ms

✅ TEST-mctcommon.event.EventTest.xml

8 tests were completed in 18ms with 8 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
mctcommon.event.EventTest 8✅ 18ms

✅ mctcommon.event.EventTest

✅ testSimpleEvent()
✅ testParameterEventTooMany()
✅ testEventMethodwithSameName()
✅ testParameterEventTooFew()
✅ testParameterEventWrongTypes()
✅ testParameterEvent()
✅ testUnregister()
✅ testMultipleReturnValues()

✅ TEST-mctcommon.server.ByteBufferBuilderTest.xml

15 tests were completed in 32ms with 15 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
mctcommon.server.ByteBufferBuilderTest 15✅ 32ms

✅ mctcommon.server.ByteBufferBuilderTest

✅ testBoolean2()
✅ testId2()
✅ testId3()
✅ testInt()
✅ testByteArray()
✅ testClone()
✅ testFloat()
✅ testShort()
✅ testLong()
✅ testUUID()
✅ testId()
✅ testBoolean()
✅ testClosed()
✅ testDouble()
✅ testString()

✅ TEST-mctcommon.server.ServerTest.xml

7 tests were completed in 6ms with 0 passed, 0 failed and 7 skipped.

Test suite Passed Failed Skipped Time
mctcommon.server.ServerTest 7⚪ 6ms

✅ mctcommon.server.ServerTest

⚪ testSendToAllClientsInterface()
⚪ testSendToServerInterface()
⚪ testSendToServerLambda()
⚪ testSendToClientLambda()
⚪ testSendToServerInterface2()
⚪ testSendToAllClientsLambda()
⚪ testSendToClientInterface()

✅ TEST-mctcommon.TestConfiguration.xml

7 tests were completed in 46ms with 7 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
mctcommon.TestConfiguration 7✅ 46ms

✅ mctcommon.TestConfiguration

✅ testBooleans()
✅ testDeleteAndContains()
✅ testIfInitialized()
✅ resetToDefault()
✅ testSavingAndLoading()
✅ testDefault()
✅ testIntegers()

✅ TEST-tasmod.networking.TASmodByteBufferBuilderTest.xml

1 tests were completed in 543ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
tasmod.networking.TASmodByteBufferBuilderTest 1✅ 543ms

✅ tasmod.networking.TASmodByteBufferBuilderTest

✅ testNBT()

✅ TEST-tasmod.playback.metadata.PlaybackMetadataRegistryTest.xml

1 tests were completed in 7ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
tasmod.playback.metadata.PlaybackMetadataRegistryTest 1✅ 7ms

✅ tasmod.playback.metadata.PlaybackMetadataRegistryTest

✅ testRegistry()

✅ TEST-tasmod.playback.metadata.PlaybackMetadataTest.xml

6 tests were completed in 6ms with 6 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
tasmod.playback.metadata.PlaybackMetadataTest 6✅ 6ms

✅ tasmod.playback.metadata.PlaybackMetadataTest

✅ testFailedEquals()
✅ testToString()
✅ testSettingAndReading()
✅ testEquals()
✅ testToStringList()
✅ testConstructor()

✅ TEST-tasmod.playback.tasfile.PlaybackSerialiserTest.xml

5 tests were completed in 88ms with 5 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
tasmod.playback.tasfile.PlaybackSerialiserTest 5✅ 88ms

✅ tasmod.playback.tasfile.PlaybackSerialiserTest

✅ testSerialiser()
✅ testDeserialiser()
✅ testFlavorIsNull()
✅ testFlavorNotFound()
✅ testDeserialiserNoExtensions()

✅ TEST-tasmod.playback.tasfile.SerialiserFlavorBaseTest.xml

36 tests were completed in 115ms with 36 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
tasmod.playback.tasfile.SerialiserFlavorBaseTest 36✅ 115ms

✅ tasmod.playback.tasfile.SerialiserFlavorBaseTest

✅ testCenterHeadingEvenText()
✅ testDeserialiseMouse()
✅ testIsNumeric()
✅ testParseFloat()
✅ testCenterHeadingEven()
✅ testDeserialiseContainer()
✅ testCenterHeadingEvenText2()
✅ testDeserialiseRelativeFloat()
✅ testDeserialiseFileCommandNames()
✅ testCenterHeadingOdd()
✅ testSplitContainer()
✅ testStringPaddingOdd()
✅ testDeserialiseKeyboardWithKeyCodes()
✅ testSerialiseContainer()
✅ testSerialiseFileCommands()
✅ testDeserialisingCameraAngle()
✅ testExtractHeaderFail()
✅ testSerialiseComments()
✅ testSerialiseMetadata()
✅ testStringPaddingEven()
✅ testSerialiseFileCommandNames()
✅ testSerialiseFlavorname()
✅ testDeserialiseRelativeInt()
✅ testDeserialiseMetadata()
✅ testExtractHeader()
✅ testSplitInputs()
✅ testJoinNotEmpty()
✅ testExtractTick()
✅ testExtractExceptions()
✅ testSerialiseHeaderStart()
✅ testMergingCommentsAndCommands()
✅ testIsFloat()
✅ testExtractExceptions2()
✅ testExtractExceptions3()
✅ testDeserialiseKeyboard()
✅ testParseInt()

✅ TEST-tasmod.virtual.VirtualCameraAngleTest.xml

14 tests were completed in 26ms with 14 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
tasmod.virtual.VirtualCameraAngleTest 14✅ 26ms

✅ tasmod.virtual.VirtualCameraAngleTest

✅ testEmptyConstructor()
✅ testSet()
✅ testUpdateWithNull()
✅ testClear()
✅ testToString()
✅ testShallowClone()
✅ testToStringSubticks()
✅ testSubtickConstructor()
✅ testCopyFrom()
✅ testEquals()
✅ testGetStates()
✅ testNotEquals()
✅ testUpdate()
✅ testUpdateWithBadPitch()

✅ TEST-tasmod.virtual.VirtualInputEventFiring.xml

2 tests were completed in 3ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
tasmod.virtual.VirtualInputEventFiring 2✅ 3ms

✅ tasmod.virtual.VirtualInputEventFiring

✅ testClear()
✅ testCopy()

✅ TEST-tasmod.virtual.VirtualInputTest.xml

11 tests were completed in 32ms with 11 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
tasmod.virtual.VirtualInputTest 11✅ 32ms

✅ tasmod.virtual.VirtualInputTest

✅ testCurrentCameraAngles()
✅ testMousePresses()
✅ testInterpolationEnabled()
✅ testIsKeyDown()
✅ testInterpolationDisabled()
✅ testKeyboardRemovePresses()
✅ testWillKeyBeDown()
✅ testMouseRemovePresses()
✅ testKeyboardAddPresses()
✅ testPreloadedConstructor()
✅ testConstructor()

✅ TEST-tasmod.virtual.VirtualKeyboardTest.xml

25 tests were completed in 61ms with 25 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
tasmod.virtual.VirtualKeyboardTest 25✅ 61ms

✅ tasmod.virtual.VirtualKeyboardTest

✅ testEmptyConstructor()
✅ testGetVirtualEventsOnSubtick()
✅ testAddCharacter()
✅ testRepeatEvents()
✅ testRepeatEventsFail()
✅ testDeepClone()
✅ testClear()
✅ testToString()
✅ testGetDifference()
✅ testShallowClone()
✅ testToStringSubticks()
✅ testSubtickConstructor()
✅ testSetPressedByKeycode()
✅ testSetPressedByKeyname()
✅ testGetVirtualEventsUnpress()
✅ testCopyFrom()
✅ testSetUnPressedByKeycode()
✅ testSetUnPressedByKeyname()
✅ testUpdateOnSubtick()
✅ testMoveFrom()
✅ testEquals()
✅ testNotEquals()
✅ testUpdate()
✅ testGetVirtualEventsPress()
✅ testFailingSetPressedByKeycode()

✅ TEST-tasmod.virtual.VirtualMouseTest.xml

22 tests were completed in 31ms with 22 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
tasmod.virtual.VirtualMouseTest 22✅ 31ms

✅ tasmod.virtual.VirtualMouseTest

✅ testEmptyConstructor()
✅ testDeepClone()
✅ testToString()
✅ testGetDifference()
✅ testShallowClone()
✅ testSubtickConstructor()
✅ testSetPressedByKeycode()
✅ testSetPressedByKeyname()
✅ testGetVirtualEventsUnpress()
✅ testCopyFrom()
✅ testScrollWheelDifferent()
✅ testSetUnPressedByKeycode()
✅ testSetUnPressedByKeyname()
✅ testCursorYDifferent()
✅ testMoveFrom()
✅ testCursorXDifferent()
✅ testEquals()
✅ testNotEquals()
✅ testToStringSubtick()
✅ testUpdate()
✅ testGetVirtualEventsPress()
✅ testSameUpdate()