Skip to content

Archipelago: add MC/DC unit tests for process_single_entrance #5127

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ViictorHugoo
Copy link

What is this fixing or adding?

This pull request adds a complete set of MC/DC (Modified Condition/Decision Coverage) unit tests for the process_single_entrance method located in worlds/lingo/utils/pickle_static_data.py.
These tests improve the test coverage of this method, covering all independent conditions and decision paths.

How was this tested?

All new tests were implemented using pytest.
Execution result: 19 tests passed successfully with no failures.
Warnings shown during execution are unrelated to the method and come from external dependencies.

If this makes graphical changes, please attach screenshots.

N/A (No graphical changes)

@github-actions github-actions bot added the waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. label Jun 20, 2025
@qwint
Copy link
Collaborator

qwint commented Jun 20, 2025

at bar minimum these should be using unittest classes per https://github.com/ArchipelagoMW/Archipelago/blob/main/docs/tests.md and if this is a lingo specific test it should be added to the lingo world and with approval by the lingo codeowner defined in https://github.com/ArchipelagoMW/Archipelago/blob/main/docs/CODEOWNERS

@ScipioWright ScipioWright added is: enhancement Issues requesting new features or pull requests implementing new features. affects: core Issues/PRs that touch core and may need additional validation. labels Jun 21, 2025
@NewSoupVi NewSoupVi added waiting-on: author Issue/PR is waiting for feedback or changes from its author. and removed waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. labels Jun 21, 2025
@NewSoupVi
Copy link
Member

NewSoupVi commented Jun 21, 2025

Yeah this should be a Lingo unit test inside worlds/Lingo/test (and should use Lingo's testbase if applicable)

Hopefully it's easy to convert, this seems like a good thing :)

@NewSoupVi
Copy link
Member

NewSoupVi commented Jun 21, 2025

Also @hatkirby are you conceptually on board? Before they do all the work of converting it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects: core Issues/PRs that touch core and may need additional validation. is: enhancement Issues requesting new features or pull requests implementing new features. waiting-on: author Issue/PR is waiting for feedback or changes from its author.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants