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

mocking and testing infrastructure #34

Open
nikomatsakis opened this issue Oct 6, 2018 · 1 comment
Open

mocking and testing infrastructure #34

nikomatsakis opened this issue Oct 6, 2018 · 1 comment
Labels
rfc Active discussion about a possible future feature

Comments

@nikomatsakis
Copy link
Member

#33 landed a very simple extension (set_unchecked) to support "fixing" the value of certain input queries for testing purposes. But as @matklad said in the comments of that PR:

I expect it would be useful to get some sort of the trace of the query, to make sure it does’t eval too much after invalidation, for example?

In general, one can imagine wanting to do fancier things than what set_unchecked permits, such as mocking up some inputs, test that you get the output you expect, and then alter the mocked inputs, and test (e.g.) that the output doesn't wind up being recomputed. This issue exists to record things we want and brainstorm on what that might look like.

@nikomatsakis nikomatsakis added the rfc Active discussion about a possible future feature label Oct 6, 2018
@memoryruins
Copy link
Contributor

update: set_unchecked methods and trait were removed in #140 and #141

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rfc Active discussion about a possible future feature
Projects
None yet
Development

No branches or pull requests

2 participants