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

Implement PanicWith(). #381

Merged
merged 2 commits into from May 6, 2020
Merged

Implement PanicWith(). #381

merged 2 commits into from May 6, 2020

Conversation

jmalloc
Copy link
Contributor

@jmalloc jmalloc commented Apr 15, 2020

Fixes #257

I finally got around to making an attempt at PanicWith() as discussed in the aforementioned issue which I opened quite some time ago.

I've stuck with the name PanicWith() as we didn't manage to come up with anything better in the issue when it was last discussed.

@jmalloc
Copy link
Contributor Author

jmalloc commented Apr 15, 2020

Please see #382 for documentation changes.

@jmalloc jmalloc marked this pull request as ready for review April 15, 2020 05:04
@jmalloc
Copy link
Contributor Author

jmalloc commented Apr 15, 2020

Please note that the CI failure was only for Go v1.12, I don't believe it to be related to these changes.

@jmalloc
Copy link
Contributor Author

jmalloc commented Apr 18, 2020

I've updated this PR to produce more description failure messages when a panic does occur, but not with the expected value.

@williammartin williammartin self-requested a review April 29, 2020 16:32
@DblK
Copy link

DblK commented May 5, 2020

Any idea about the next step for this PR?

@williammartin
Copy link
Sponsor Collaborator

@DblK yep yep, I am hopefully going to find time to review it today. Thanks for the bump, I lose track of things so easily these days :)

@williammartin williammartin merged commit f22b915 into onsi:master May 6, 2020
@williammartin
Copy link
Sponsor Collaborator

Looks great to me. Don't mind the 1.12 failure, something orthogonal. Thanks!

@jmalloc jmalloc deleted the panic-with branch May 6, 2020 21:03
@jmalloc
Copy link
Contributor Author

jmalloc commented May 6, 2020

Happy to finally contribute! Would I be out of line asking when this might make it into a tag? 😄

@williammartin
Copy link
Sponsor Collaborator

OUT OF ORDER! We'll have to check out the 1.12 failure before doing a release but otherwise asap.

@williammartin
Copy link
Sponsor Collaborator

This has been released in v1.10.0, thanks for your contribution @jmalloc

@jmalloc
Copy link
Contributor Author

jmalloc commented May 7, 2020

Excellent, thank you!

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.

Panic matcher for a specific value.
3 participants