Skip to content

Basics: remove @testable imports #8821

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 2 commits into
base: main
Choose a base branch
from
Open

Conversation

compnerd
Copy link
Member

Adjust the build to open up some of the private APIs to the package and remove the use of @testable for the Basics module in the tests.

@compnerd
Copy link
Member Author

@swift-ci please test

Copy link
Contributor

@jakepetroules jakepetroules left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice!

@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd
Copy link
Member Author

@swift-ci please test Windows platform

compnerd added 2 commits June 17, 2025 17:39
This extends the visibility of some of the private implementation to the
package level to allow use for testing without `@testable` imports.
Use the newly extended APIs for testing and use a non-testable import of
the package, avoiding a recompilation.
@compnerd
Copy link
Member Author

@swift-ci please test

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.

3 participants