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

Add CasePath.modify #50

Merged
merged 1 commit into from
Jul 29, 2021
Merged

Add CasePath.modify #50

merged 1 commit into from
Jul 29, 2021

Conversation

stephencelis
Copy link
Member

This adds a method on CasePath that can take a mutable enum root and mutate its associated value in a closure.

It's proven to be quite helpful when working with mutable enum state in the Composable Architecture, especially when it comes to testing.

@stephencelis stephencelis merged commit d226d16 into main Jul 29, 2021
@stephencelis stephencelis deleted the modify branch July 29, 2021 15:22
johankool pushed a commit to johankool/swift-case-paths that referenced this pull request Nov 2, 2024
* Soften app host failure message

The way we detect app hosts triggers more often than we expected, especially in async tests, so let's make it sound a bit more informational instead of a loud warning that makes the false positive sound more definitive.

* wip

* Update XCTFail.swift

---------

Co-authored-by: Brandon Williams <mbrandonw@hey.com>
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