Skip to content

Test that the fixups are generated if display name is empty#1267

Merged
jerryjrchen merged 2 commits into
swiftlang:mainfrom
jerryjrchen:test-for-empty-name-fixups
Aug 14, 2025
Merged

Test that the fixups are generated if display name is empty#1267
jerryjrchen merged 2 commits into
swiftlang:mainfrom
jerryjrchen:test-for-empty-name-fixups

Conversation

@jerryjrchen

@jerryjrchen jerryjrchen commented Aug 14, 2025

Copy link
Copy Markdown
Contributor

No functional change: just adds new test cases for the change in #1256

Motivation:

Slightly improves effective test coverage for Stuart's earlier change.

Modifications:

  • Moved the tests previously added to apiMisuseErrors -> apiMisuseErrorsIncludingFixIts, and include the expected fixits

    It would probably be ok to leave them in apiMisuseErrors as well, but I think it would be kinda redundant since we also test the expected message along with the fixits already.

Checklist:

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

No functional change: just adds new test cases for the change in swiftlang#1256

* Moved the tests previously added to `apiMisuseErrors` ->
  `apiMisuseErrorsIncludingFixIts`, and include the expected fixits

  It would probably be ok to leave them in `apiMisuseErrors` as well,
  but I think it would be kinda redundant since we also test the
  expected message along with the fixits already.
@grynspan grynspan added enhancement New feature or request macros 🔭 Related to Swift macros such as @Test or #expect labels Aug 14, 2025
@grynspan grynspan added this to the Swift 6.x (main) milestone Aug 14, 2025
Comment thread Tests/TestingMacrosTests/TestDeclarationMacroTests.swift Outdated
@jerryjrchen

Copy link
Copy Markdown
Contributor Author

@swift-ci test

@jerryjrchen jerryjrchen merged commit 9faef9b into swiftlang:main Aug 14, 2025
3 checks passed
@jerryjrchen jerryjrchen deleted the test-for-empty-name-fixups branch August 14, 2025 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request macros 🔭 Related to Swift macros such as @Test or #expect

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants