Skip to content

Core - API - Finished most of db schema update logic #192

Core - API - Finished most of db schema update logic

Core - API - Finished most of db schema update logic #192

GitHub Actions / Test Report succeeded Jul 30, 2024 in 0s

44 passed, 0 failed and 0 skipped

Tests passed successfully

Report Passed Failed Skipped Time
software/libs/open-qm-moduleDriver/build/test-results/test/TEST-tech.ebp.oqm.lib.moduleDriver.interaction.command.commands.CommandParserTest.xml 15✅ 36ms
software/libs/open-qm-moduleDriver/build/test-results/test/TEST-tech.ebp.oqm.lib.moduleDriver.interaction.command.commands.CommandParsingUtilsTest.xml 18✅ 49ms
software/libs/open-qm-moduleDriver/build/test-results/test/TEST-tech.ebp.oqm.lib.moduleDriver.interaction.command.commands.CommandTest.xml 9✅ 19ms
software/libs/open-qm-moduleDriver/build/test-results/test/TEST-tech.ebp.oqm.lib.moduleDriver.ModuleStateValidationTest.xml 2✅ 159ms

✅ software/libs/open-qm-moduleDriver/build/test-results/test/TEST-tech.ebp.oqm.lib.moduleDriver.interaction.command.commands.CommandParserTest.xml

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

Test suite Passed Failed Skipped Time
tech.ebp.oqm.lib.moduleDriver.interaction.command.commands.CommandParserTest 15✅ 36ms

✅ tech.ebp.oqm.lib.moduleDriver.interaction.command.commands.CommandParserTest

✅ [1] $O, OkCommand(super=SimpleCommand(super=Command(type=OKAY), serialLine=$O))
✅ [2] $P, PingCommand(super=SimpleCommand(super=Command(type=PING), serialLine=$P))
✅ [3] $I, GetInfoCommand(super=SimpleCommand(super=Command(type=GET_INFO), serialLine=$I))
✅ [4] $S, GetStateCommand(super=SimpleCommand(super=Command(type=GET_STATE), serialLine=$S))
✅ [5] $E, ErrorCommand(super=Command(type=ERROR), errInfo=null)
✅ [6] $E|hello world, ErrorCommand(super=Command(type=ERROR), errInfo=hello world)
✅ [7] $M|hello world, MessageCommand(super=Command(type=MESSAGE), message=hello world)
✅ [1] null, Null line.
✅ [2] , Line is empty.
✅ [3]      , Line is empty.
✅ [4] $, Line too short
✅ [5] #O, Line is not a command.
✅ [6] $@, Could not determine command type.
✅ [7] $M, Simple command not recognized.
✅ [8] $O|hello world, Complex command not recognized.

✅ software/libs/open-qm-moduleDriver/build/test-results/test/TEST-tech.ebp.oqm.lib.moduleDriver.interaction.command.commands.CommandParsingUtilsTest.xml

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

Test suite Passed Failed Skipped Time
tech.ebp.oqm.lib.moduleDriver.interaction.command.commands.CommandParsingUtilsTest 18✅ 49ms

✅ tech.ebp.oqm.lib.moduleDriver.interaction.command.commands.CommandParsingUtilsTest

✅ [1] PING, $I
✅ [1] ON, ON
✅ [2] OFF, OFF
✅ [3] FLASHING, FLASHING
✅ [4] 0, 0
✅ [5] 127, 127
✅ [6] 255, 255
✅ [7] FFFFFF, java.awt.Color[r=255,g=255,b=255]
✅ testGetPartsAndAssertCommandParts()
✅ testGetNonCommandParts()
✅ testGetNonCommandPartsNoParts()
✅ testGetCommandPart()
✅ testGetNonCommandPartsOnePart()
✅ testSplitLine()
✅ [1] BAD
✅ [2] 256
✅ [3] -1
✅ [4] ASDFGH

✅ software/libs/open-qm-moduleDriver/build/test-results/test/TEST-tech.ebp.oqm.lib.moduleDriver.interaction.command.commands.CommandTest.xml

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

Test suite Passed Failed Skipped Time
tech.ebp.oqm.lib.moduleDriver.interaction.command.commands.CommandTest 9✅ 19ms

✅ tech.ebp.oqm.lib.moduleDriver.interaction.command.commands.CommandTest

✅ [1] GetInfoCommand(super=SimpleCommand(super=Command(type=GET_INFO), serialLine=$I)), $I
✅ [2] GetStateCommand(super=SimpleCommand(super=Command(type=GET_STATE), serialLine=$S)), $S
✅ [3] OkCommand(super=SimpleCommand(super=Command(type=OKAY), serialLine=$O)), $O
✅ [4] PingCommand(super=SimpleCommand(super=Command(type=PING), serialLine=$P)), $P
✅ [5] ErrorCommand(super=Command(type=ERROR), errInfo=null), $E
✅ [6] ErrorCommand(super=Command(type=ERROR), errInfo=error happened), $E|error happened
✅ [7] MessageCommand(super=Command(type=MESSAGE), message=message), $M|message
✅ [8] GetInfoReturnCommand(super=Command(type=GET_INFO), info=ModuleInfo(serialNo=serial, manufactureDate=2022-02-22, commSpecVersion=1.0.0, numBlocks=50)), $I|serial|2022-02-22|1.0.0|50
✅ [9] GetStateReturnCommand(super=Command(type=GET_STATE), info=ModuleState(lightSettings=[], currentMessage=, encoderVal=0, encoderPressed=false, pixelColors=[])), $S|

✅ software/libs/open-qm-moduleDriver/build/test-results/test/TEST-tech.ebp.oqm.lib.moduleDriver.ModuleStateValidationTest.xml

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

Test suite Passed Failed Skipped Time
tech.ebp.oqm.lib.moduleDriver.ModuleStateValidationTest 2✅ 159ms

✅ tech.ebp.oqm.lib.moduleDriver.ModuleStateValidationTest

✅ [1] ModuleState(lightSettings=[], currentMessage=, encoderVal=0, encoderPressed=false, pixelColors=[])
✅ [1] ModuleState(lightSettings=[null], currentMessage=, encoderVal=0, encoderPressed=false, pixelColors=[]), {lightSettings\[0].<list element>=must not be null}