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

Autogenerate code for require and forwarded assertions #241

Merged
merged 7 commits into from Jan 7, 2016

Conversation

ernesto-jimenez
Copy link
Member

Right now each assertion requires to define 4 methods: the actual assertion and three methods wrapping the assertion.

This PR introduces a Go program to automatically generate the wrappers.

This is still work in progress, since it needs a refactor.

@matryer
Copy link
Member

matryer commented Jan 7, 2016

Oh this is very clever.

ernesto-jimenez added a commit that referenced this pull request Jan 7, 2016
Autogenerate code for require and forwarded assertions
@ernesto-jimenez ernesto-jimenez merged commit c92828f into stretchr:master Jan 7, 2016
@ernesto-jimenez ernesto-jimenez deleted the codegen branch January 7, 2016 17:54
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