Closed smol-ninja closed 4 months ago
@PaulRBerg I have also marked you as a reviewer (I know you are busy preparing for demo day so no rush), in case you want to have a look how the tests look like using Bulloak format.
@andreivladbrg since this PR could be a bit complicated to review, my advise would be to review trees first and discover any discrepancies there. The tests follow exactly the same structure as the trees.
Thanks guys, will review later
I find it redundant to have the comment in a function called RevertWhen or RevertGiven, let's remove the comments:
Fair point. i agree with removing them.
but in more place you decided to remove the "is" - which i agree with and i suggest to remove it everywhere
I struggled with this a lot. The problem is that at some places, we need "is" and at other places we don't. For example, "when deposit amount is zero" sounds better than "when deposit amount zero". I will have a look and try to bring consistencies among them.
PS: I see that you have already taken care of it in your PR. Thanks!
SablierFlow_TransferAmountZero
Good finding. And thanks for creating feedback PR. I am going to review it now.
Linked issues
Additional changelog
getBlockTimestamp()
inUtils
virtual
. They are overridden by the modifiers with the same name in the test contracts to follow DRY. These identical modifiers in test contracts are used to change states across distinct test functions.Helpers.sol
functions are made inIntegration
to prevent importing it in each test contract.Following tests have been refactored using bulloak: