Skip to content

test: add unit tests for BFS construction#5

Open
Pratz1337 wants to merge 1 commit intogoogle-deepmind:mainfrom
Pratz1337:test/bfs-coverage
Open

test: add unit tests for BFS construction#5
Pratz1337 wants to merge 1 commit intogoogle-deepmind:mainfrom
Pratz1337:test/bfs-coverage

Conversation

@Pratz1337
Copy link

@Pratz1337 Pratz1337 commented Dec 20, 2025

Fixes #4

Description

The _src/se/construction/bfs.py module is critical for game tree generation but currently lacks unit test coverage.

Changes

This PR adds _src/se/construction/bfs_test.py to verify:

  • get_child behavior for terminal and non-terminal nodes.
  • add_terminal_node graph updates.
  • The main bfs execution loop using mocks.

- Adds comprehensive unit tests for strategicwm._src.se.construction.bfs.
- Covers get_child, add_terminal_node, and the main bfs loop using mocks.
@google-cla
Copy link

google-cla bot commented Dec 20, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@Pratz1337
Copy link
Author

fixed CLA

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.

Add unit tests for BFS construction module

1 participant