-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: add btt tests for BCoWPool commit #162
Conversation
test/unit/BCoWPool/BCoWPool.tree
Outdated
├── when sender is not solution settler | ||
│ └──it should revert | ||
└── when sender is solution settler | ||
├── when reentrancy lock is set |
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.
other way around? 1st reentrancy is checked, then the sender
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.
i'd go for:
when reentrancy lock is set -> should revert
when sender is not solution settler -> should revert
when called (or preconditions are met) -> should set the reentrancy lock
test/unit/BCoWPool/BCoWPool.t.sol
Outdated
function test_WhenPreconditionsAreMet() external whenPreconditionsAreMet { | ||
function test_FinalizeWhenPreconditionsAreMet() external whenPreconditionsAreMet { |
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.
why are we changing this line? is it that single tree bulloak skips the method?
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.
👍
96aa3d6
to
4865e04
Compare
@@ -6,3 +6,11 @@ BCoWPool::_afterFinalize | |||
│ └── it returns | |||
└── when factorys logBCoWPool reverts | |||
└── it emits a COWAMMPoolCreated event | |||
|
|||
BCoWPool::Commit |
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.
i don't get why we need to capitalize, it's not on BPool.tree
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.
👍
No description provided.