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

Release #2

Closed
wants to merge 4 commits into from
Closed

Release #2

wants to merge 4 commits into from

Conversation

boggle
Copy link

@boggle boggle commented Jul 13, 2011

Hey, I'm using gospec on a pet project of mine and added a few matchers as I went:

(1) Is("arbitrary message") as a more explicit Satisfies
(2) Support for catching panics conveniently, e.g.

 c.Expect(func() { panic(os.EINVAL) }, Panic(Equals), os.EINVAL)
 c.Expect(func() { ... }, RunsNormally)

Greets,

boggle

@luontola
Copy link
Owner

Thanks. Those changes are now in the master branch (I also refactored them). Some usage examples would still be needed for them at https://github.com/orfjackal/gospec/blob/master/examples/expectation_syntax_test.go

Do you have a use case where Panic and RunsNormally are not enough, but Catch and IsNoError are needed? I would like to minimize the number of matchers and make Catch and IsNoError private if possible.

@boggle boggle closed this Oct 8, 2015
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.

None yet

2 participants