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

Automated testing of TimeSteward internals #4

Open
elidupree opened this issue Aug 21, 2016 · 2 comments
Open

Automated testing of TimeSteward internals #4

elidupree opened this issue Aug 21, 2016 · 2 comments

Comments

@elidupree
Copy link
Owner

elidupree commented Aug 21, 2016

Our main tool for testing TimeSteward behavior should be cross verified time stewards. If two time stewards receive the same valid input and give different results, there is an internal error. However, this testing should be cautious not to give false-positives when the caller gives invalid input.

I began implementing something like this, but ran into trouble with Rust polymorphism limitations. In the short term, working around them may require a whole pile of macros.

We can also make a wrapper class that tests whether a TimeSteward obeys the valid_since() rules.

@elidupree
Copy link
Owner Author

The basic implementation of cross verified time stewards is now working. There are many more features that can be added, though.

@elidupree
Copy link
Owner Author

I have created a pretty good crossverified test case. More work could still be done in this area, but I consider this sufficient for MVP.

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

No branches or pull requests

1 participant