Skip to content

Add tests for inGameWorld() vanilla nether/end early-return paths#165

Merged
tastybento merged 2 commits intodevelopfrom
copilot/sub-pr-164
Mar 8, 2026
Merged

Add tests for inGameWorld() vanilla nether/end early-return paths#165
tastybento merged 2 commits intodevelopfrom
copilot/sub-pr-164

Conversation

Copy link
Contributor

Copilot AI commented Mar 8, 2026

Border.inGameWorld() gained two early-return false paths for vanilla (non-island) nether and end worlds, but BorderTest had no coverage for them.

Added tests

  • testInGameWorldReturnsFalseForVanillaNetherNETHER + isIslandNether=falsefalse
  • testInGameWorldReturnsFalseForVanillaEndTHE_END + isIslandEnd=falsefalse
  • testInGameWorldDelegatesToGameModeForIslandNetherNETHER + isIslandNether=true → falls through to game mode check
  • testInGameWorldDelegatesToGameModeForIslandEndTHE_END + isIslandEnd=true → falls through to game mode check

Each test stubs world.getEnvironment() and the relevant IWM predicate directly on the existing world/iwm mocks from CommonTestSetup.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: tastybento <4407265+tastybento@users.noreply.github.com>
Copilot AI changed the title [WIP] Address feedback from review on PR #164 for Release 4.8.1 Add tests for inGameWorld() vanilla nether/end early-return paths Mar 8, 2026
@tastybento tastybento marked this pull request as ready for review March 8, 2026 01:27
@tastybento tastybento merged commit f67665d into develop Mar 8, 2026
@tastybento tastybento deleted the copilot/sub-pr-164 branch March 8, 2026 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants