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

Test interfaces at compile time not at test time #78

Open
zimmski opened this issue Jan 12, 2015 · 0 comments
Open

Test interfaces at compile time not at test time #78

zimmski opened this issue Jan 12, 2015 · 0 comments

Comments

@zimmski
Copy link
Owner

zimmski commented Jan 12, 2015

Remove all testing code of type

Implements(t, tok, &ConstantInt{})

With

...
// Token interface methods
var _ Token = (*ConstantInt)(nil)
...

Do this in _test.go not in .go.

Do this every time a type must implement a specific token.

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

No branches or pull requests

1 participant