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

Improve assertions on async throwing expressions #22

Conversation

pereBohigas
Copy link
Contributor

Hi!

Here the custom methods on XCTest for asserting on async throwing expressions are being modified and the usage of the @autoclosure attribute (which seems not to be suitable for wrapping asynchronous expressions) is being removed. Some other minor improvements are also being introduced.

PD: The disablement of the hoistAwait SwiftFormat rule is no longer required, and therefore the rule is being enabled again.

Cheers!

@pereBohigas pereBohigas mentioned this pull request May 30, 2024
@pereBohigas pereBohigas force-pushed the feature/improve_assertions_on_async_throwing_expressions branch from b0a5258 to eae1d3f Compare May 30, 2024 21:12
@pereBohigas pereBohigas force-pushed the feature/improve_assertions_on_async_throwing_expressions branch from eae1d3f to d58b2eb Compare May 30, 2024 21:16
@roddymunro roddymunro merged commit 16803e2 into appdecostudio:v1 Jun 4, 2024
1 of 2 checks passed
roddymunro added a commit that referenced this pull request Jun 12, 2024
* Add ArgumentParser (#16)

* Add ArgumentParser dependency

* Rename SwiftPolyglotCore struct

* Add RuntimeError

* Rename SwiftPolyglot struct, add ParsableCommand adoption and add RuntimeError usage

* Parse arguments and flag using ArgumentParser and adjust SwiftPolyglotCore initializer's parameters

* Update README

* Rename property

* Format

* Fix command name in help's message

* Add Concurrency (#17)

* Set minimum macOS version to version 10.15 (Catalina)

* Add MissingTranslation struct

* Add concurrency to core functionality

* Adopt AsyncParsableCommand protocol to provide an asynchronous entry point

* Add XCTest extension for testing async throwing expressions

* Add concurrency to tests

* Fix SwiftFormat issues (#19)

* Remove trailing commas

* Fix indentation

* Move inline try to start of expression

* Remove trailing white spaces

* Use opaque generic parameters instead of generic parameters with constraints

* Replace consecutive blank lines with a single blank line

* Disable hoistAwait (#20)

* Fix swiftformat (#21)

* Improve assertions on async throwing expressions (#22)

* Add Equatable adoption for custom error

* Improve custom method for asserting on asynchronous expressions which should run successfully without throwing an error

* Improve custom method for asserting on asynchronous expressions which should throw an error

* Reenable hoistAwait SwiftFormat rule

---------

Co-authored-by: Pere Bohigas <[email protected]>
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