diff options
| -rw-r--r-- | codecov.yml | 3 | ||||
| -rw-r--r-- | engine/src/test/kotlin/dev/m1sk9/lunaticChat/engine/protocol/ProtocolVersionTest.kt | 14 |
2 files changed, 17 insertions, 0 deletions
diff --git a/codecov.yml b/codecov.yml index e23de4b..453e954 100644 --- a/codecov.yml +++ b/codecov.yml @@ -21,6 +21,9 @@ ignore: # VelocityStatusCommand is tightly coupled to VelocityConnectionManager and has no unit-test # infrastructure; it is exercised via end-to-end multi-server tests. - "platform-paper/src/main/kotlin/dev/m1sk9/lunaticChat/paper/command/impl/lcv/VelocityStatusCommand.kt" + # VelocityConnectionManager is tightly coupled to the Paper/Bukkit runtime (Plugin, Player, + # PluginMessageListener) and is exercised via end-to-end multi-server tests. + - "platform-paper/src/main/kotlin/dev/m1sk9/lunaticChat/paper/velocity/VelocityConnectionManager.kt" # The Velocity platform has no unit-test infrastructure; it is exercised via end-to-end # multi-server tests (docker compose). - "platform-velocity/src/main/kotlin/**" diff --git a/engine/src/test/kotlin/dev/m1sk9/lunaticChat/engine/protocol/ProtocolVersionTest.kt b/engine/src/test/kotlin/dev/m1sk9/lunaticChat/engine/protocol/ProtocolVersionTest.kt index ad68beb..e8b9df8 100644 --- a/engine/src/test/kotlin/dev/m1sk9/lunaticChat/engine/protocol/ProtocolVersionTest.kt +++ b/engine/src/test/kotlin/dev/m1sk9/lunaticChat/engine/protocol/ProtocolVersionTest.kt @@ -74,4 +74,18 @@ class ProtocolVersionTest { fun `isCompatible with minor above MINOR should return false`() { assertFalse(ProtocolVersion.isCompatible(ProtocolVersion.MAJOR, ProtocolVersion.MINOR + 1)) } + + @Test + fun `isCompatible with minor below MIN_SUPPORTED_MINOR should return false`() { + assertFalse(ProtocolVersion.isCompatible(ProtocolVersion.MAJOR, ProtocolVersion.MIN_SUPPORTED_MINOR - 1)) + } + + @Test + fun `isCompatible string with minor below MIN_SUPPORTED_MINOR should return false`() { + assertFalse( + ProtocolVersion.isCompatible( + "${ProtocolVersion.MAJOR}.${ProtocolVersion.MIN_SUPPORTED_MINOR - 1}.0", + ), + ) + } } |
