Skip to content

Conversation

@stmontgomery
Copy link
Contributor

A few refinements to IssueHandlingTrait, which is still SPI.

Motivation:

Polish this SPI in anticipation of posting a pitch to promote it to public API soon.

Modifications:

  • Expose a handleIssue(_:) instance method to allow more easily composing multiple issue handling traits and calling their underlying handler closure. This is conceptually similar to what was done for ST-0010: Public API to evaluate ConditionTrait.
  • Refine the names of private decls.
  • Add - Returns: in DocC for places it's missing.

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.

@stmontgomery stmontgomery added this to the Swift 6.x milestone May 20, 2025
@stmontgomery stmontgomery self-assigned this May 20, 2025
@stmontgomery stmontgomery added the documentation 📚 Improvements or additions to documentation label May 20, 2025
@stmontgomery stmontgomery added enhancement New feature or request issue-handling Related to Issue handling within the testing library traits Issues and PRs related to the trait subsystem or built-in traits labels May 20, 2025
@stmontgomery
Copy link
Contributor Author

@swift-ci please test

@suzannaratcliff suzannaratcliff self-requested a review May 20, 2025 20:14
@stmontgomery stmontgomery merged commit 40edfec into swiftlang:main May 20, 2025
3 checks passed
@stmontgomery stmontgomery deleted the issue-handling-trait-refinements branch May 20, 2025 20:16
@stmontgomery stmontgomery modified the milestones: Swift 6.x, Swift 6.2 May 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation 📚 Improvements or additions to documentation enhancement New feature or request issue-handling Related to Issue handling within the testing library traits Issues and PRs related to the trait subsystem or built-in traits

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants