Skip to content

Add fix-its for access level leaks #32

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 2 commits into from
Apr 5, 2024
Merged

Add fix-its for access level leaks #32

merged 2 commits into from
Apr 5, 2024

Conversation

gohanlon
Copy link
Owner

@gohanlon gohanlon commented Apr 5, 2024

  • Add fix-its for access level leaks; update tests with full fix-it coverage
  • Add forked and vendored MacroTesting
    • Always snapshot the original expanded source, even when the expansion
      includes diagnostics. (Moved expansion to be the first snapshot
      closure, not the last.)
    • Omit expansion if the original source didn't expand. (That is, the
      "expanded" source is identical to the source resulting from merely
      removing the macro attributes.)
    • Never automatically re-expand fixed source. (Require users to add a
      separate assertMacro statement, if fixed source isn't already tested
      elsewhere.)
    • Fix-its that can't be simulateously applied are now testable.
    • Changed the fixes string format to snapshot fixes individually.
    • Always snapshot the fixes, even when not all diagnostics have a
      fix-it.
    • Add an option to skip applying fix-its, e.g. when fix-it application
      is already covered by other tests.

* Always snapshot the original expanded source, even when the expansion
  includes diagnostics. (Moved `expansion` to be the first snapshot
  closure, not the last.)
* Omit `expansion` if the original source didn't expand. (That is, the
  "expanded" source is identical to the source resulting from merely
  removing the macro attributes.)
* Never automatically re-expand fixed source. (Require users to add a
  separate `assertMacro` statement, if fixed source isn't already tested
  elsewhere.)
* Fix-its that can't be simulateously applied are now testable.
* Changed the `fixes` string format to snapshot fixes individually.
* Always snapshot the fixes, even when not all diagnostics have a
  fix-it.
* Add an option to skip applying fix-its, e.g. when fix-it application
  is already covered by other tests.
@gohanlon gohanlon self-assigned this Apr 5, 2024
@gohanlon gohanlon changed the title Access leak fix its Add access leak fix-its Apr 5, 2024
@gohanlon gohanlon changed the title Add access leak fix-its Add fix-its for access level leaks Apr 5, 2024
@gohanlon gohanlon merged commit 0db72fd into main Apr 5, 2024
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.

1 participant