-
Notifications
You must be signed in to change notification settings - Fork 9
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
Add FlexVotingClient Invariant Tests #72
Conversation
ca4b5b6
to
d44bf40
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @davidlaprade, I know this is in draft but I had some time to take a look and leave some preliminary thoughts. Looking good overall! Will be nice to have an invariant suite for this.
c56f115
to
834fcf0
Compare
Weirdly test coverage is ... down(?) because of a PR that only adds... tests 🤔 |
Otherwise no one will have weight to vote
04638eb
to
a03cc50
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks for adding the passage of time
Coverage after merging invariants into master will be
|
I tried to keep the handler as simple as I could, but it's more complicated than I'd like.
To help me reason about the reverts/failures I was seeing in my invariant tests, I ended up needing to write tests for the handler functions. This helped me catch a lot of bugs in the handler, but it made this PR quite a bit bigger than I'd have liked.
If there are important invariants you think I've missed, please lmk! I'm sure there are some I haven't thought of.