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

Added should throw and should not throw assertions that operate on suspending functions #216

Conversation

piotrb5e3
Copy link
Contributor

Description

I added support for suspend functions in should throw and should not throw, as requested in #215.
I also wrote tests for should throw and should not throw that check behavior on both suspending and regular functions.

Usage examples

coInvoking { foo() } `should throw` CustomException(12345)
coInvoking { bar() } `should not throw` CustomException::class

Checklist

  • I've added my name to the AUTHORS file, if it wasn't already present.

@MarkusAmshove
Copy link
Owner

Thank you very much for the contribution :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants