Skip to content
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

[Groundwork for #1201] Remove capture in Quick method call trailing closures #1206

Merged
merged 2 commits into from
Nov 26, 2021

Conversation

lawrence-forooghian
Copy link
Collaborator

@lawrence-forooghian lawrence-forooghian commented Nov 4, 2021

What does this do?

Removes a capture in some trailing closures in the tests. See commit message for more details.

Whilst I was there, I also changed some vars to lets.

Does it change the behaviour of the test suite?

No, it's just a refactor.

Why are we doing this?

It’s groundwork for removing the Quick testing framework using an automated migrator tool (#1201). The
migrator that I’m writing won’t be able to handle the capture lists in the QuickSpec method call trailing closures, so I’m replacing them.

@lawrence-forooghian lawrence-forooghian force-pushed the 1201-remove-capture-in-it-trailing-closure branch from ee77bbd to f5bbcbf Compare November 24, 2021 19:02
@lawrence-forooghian lawrence-forooghian changed the title [Groundwork for #1201] Remove capture in it trailing closure [Groundwork for #1201] Remove capture in Quick method call trailing closures Nov 24, 2021
@lawrence-forooghian lawrence-forooghian self-assigned this Nov 24, 2021
@lawrence-forooghian lawrence-forooghian marked this pull request as ready for review November 24, 2021 20:30
@lawrence-forooghian lawrence-forooghian force-pushed the 1201-remove-capture-in-it-trailing-closure branch from f5bbcbf to 79f0887 Compare November 25, 2021 15:17
There’s no need for these to be instance variables. We’re not mutating
anything, it’s just static testing data.

The motivation for this change is that it’s groundwork for removing the
Quick testing framework using an automated migrator tool (#1201). The
migrator that I’m writing won’t be able to handle the capture lists in
the QuickSpec method call trailing closures, so I’m replacing them.
We can, so we should.
@lawrence-forooghian lawrence-forooghian force-pushed the 1201-remove-capture-in-it-trailing-closure branch from 79f0887 to d61536a Compare November 26, 2021 13:19
@lawrence-forooghian lawrence-forooghian merged commit 44cbbb0 into main Nov 26, 2021
@lawrence-forooghian lawrence-forooghian deleted the 1201-remove-capture-in-it-trailing-closure branch November 26, 2021 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants