Skip to content
This repository has been archived by the owner on Jan 3, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants