Replies: 1 comment 5 replies
-
Yeah, this has been discussed a few times, and I don't have a good answer, tbh. In this specific example, I would just "merge" both parent branches to something like There are a couple of solutions we could explore:
I think #1 makes sense, and I'd be down to implement it, though I want to note that there is some value in pointing out that there are branches named the same. Also, some people hate long function names :( wdyt? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When testing complex code a common scenario scenario involves verifying specific behaviors under different setups. For example in Sablier V2 Core, the test tree looks like this:
This tree structure checks that
when the caller is a malicious third party
andwhen the caller is the recipient
should revert in both cases:when the caller is unauthorized for all streams
andwhen the caller is unauthorized for some streams
.Using
bulloak
, this specification fails because in Solidity two functions or modifiers cannot have the same signature.However, in the Sablier V2 Core repo this issue is managed by also appending the scenario description to the function name instead of just creating a modifier, as shown below:
Is there a way to handle this in bulloak? or any workaround for this issue?
Perhaps a special word, character, or ASCII sequence in the tree, could be used to append the description to the function name?
Beta Was this translation helpful? Give feedback.
All reactions