-
Notifications
You must be signed in to change notification settings - Fork 50
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
Modifiers for each testing branch (plus other enhancements) #90
Conversation
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.
We are going to use V4 #91 (comment).
In commit test: change test functions name, you have bumped solidity to v0.8.15, which is quite an important change. It should have been the first message, listed at the top. |
9945116
to
4ab571d
Compare
chore: improve wording in comments
chore: disable "no-empty-blocks" solhint rule test: refactor all test function names Closes #77
test: remove test contracts for each testing branch in SablierV2Linear See discussion in #91
test: add modifiers for the create function in SablierV2Linear test: fix comments on IsCancelable tests test: remove test contracts for each testing branch in SablierV2Pro See discussion in #91
test: rename test functions test: solve inheritance issue
chore: update remapping for "forge-std" test: import new "NonCompliantERC20" from "@prb/contracts" test: rename "nonStandardToken" to "nonCompliantToken"
4ab571d
to
7050e51
Compare
test: use "E" constant instead of deprecated "e()" getter
ci: run fuzzer 10,000 times style: indent toml with 2 spaces
chore: order fields alphabetically in "foundry.toml" test: change "Overflow" to "Overflows" in function names
a06cfaf
to
0e25245
Compare
test: delete "OneSegment", "Token6Decimals" and "Token18Decimals" modifiers test: structure "getWithdrawableAmount" tests properly
test: change "CallerUnauthorized" to "CallerNotRecipient" test: change "CallerUnauthorized" to "CallerNotSender"
test: fix whitespace in "withdrawAll" testing tree test: delete "CallerSender" and "Token18Decimals" modifiers test: rename "testCannotCreate" to "testCannotCreate__StartTimeGreaterThanFirstMilestone" test: rename "testWithdrawAll" to "testWithdrawAll__CallerSender"
I fixed a couple of mistakes in your implementation @andreivladbrg.
As a rule of thumb, whenever there are complex branches which do not revert early, the names of the test functions should follow the testing branches so that we don't end up with name collisions. |
d615bfa
to
d15bebd
Compare
Gonna merge this now. Good job @andreivladbrg. |
|
Good catch. Fixed on
See this: |
Oh, didn't see that. |
Changelog:
UnitTest
descriptor from each contract name (the contract names have become quite long)streamId
variable todaiStreamId
to make it clear that we're referring to a $DAI stream