Skip to content

[stdlibUnittest] generalize expectNotNil(_:) #82064

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

Merged
merged 1 commit into from
Jun 7, 2025

Conversation

glessard
Copy link
Contributor

@glessard glessard commented Jun 6, 2025

Generalize StdlibUnittest's expectNotNil(_:) function for non-copyable and non-escapable parameter types.

Useful for testing failable UTF8Span initializers, for example.

Generalizes it for non-copyable and non-escapable values.
@glessard glessard requested a review from a team as a code owner June 6, 2025 16:16
@glessard
Copy link
Contributor Author

glessard commented Jun 6, 2025

@swift-ci please smoke test

@glessard glessard requested a review from lorentey June 6, 2025 16:18
@glessard
Copy link
Contributor Author

glessard commented Jun 6, 2025

@swift-ci please smoke test macOS platform

@glessard glessard enabled auto-merge June 7, 2025 00:20
@glessard glessard merged commit 3a96d08 into swiftlang:main Jun 7, 2025
3 checks passed
@glessard glessard deleted the generalize-expectNotNil branch June 8, 2025 04:10
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