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

Update analyzer for calls to WithNonVoidReturnType #764

Merged

Conversation

thomaslevesque
Copy link
Member

@thomaslevesque thomaslevesque commented Jun 16, 2016

closes #648

@adamralph
Copy link
Contributor

Should we add a test?

@thomaslevesque
Copy link
Member Author

thomaslevesque commented Jun 16, 2016

Should we add a test?

I considered it, but we already don't test all the methods handled by the analyzer... I can add a test if you like. Do you think we should explicitly cover all call specification methods?

@adamralph
Copy link
Contributor

Would it be possible to parameterise a single test to do it for all the methods?

@thomaslevesque
Copy link
Member Author

Would it be possible to parameterise a single test to do it for all the methods?

Not really, since we have to write actual valid code that uses the method... Of course, we could pass that code as a parameter, but it would be quite ugly.

@adamralph
Copy link
Contributor

I think we ought to write a test. It feels a bit icky pushing this out without any proof that it works.

We have tech debt in that some of other methods aren't covered, but we can pay that off later.

@thomaslevesque
Copy link
Member Author

OK. I amended the commit to add a test.

@adamralph adamralph merged commit 544f2e4 into FakeItEasy:master Jun 16, 2016
@adamralph
Copy link
Contributor

That was quick! Thanks!

@blairconrad
Copy link
Member

👍 Thanks!

@thomaslevesque
Copy link
Member Author

That was quick!

The magic of copy-paste-edit ;)

@thomaslevesque thomaslevesque deleted the withnonvoidreturntype-analyzer branch June 17, 2016 07:50
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.

Common default return value of functions with generics
3 participants