-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(refactor): core tests to use Bulloak (#1022)
* ci: bulloak check * test(refactor): refactor lockup integration tests using bulloak * test(refactor): refactor lockup dynamic tests using bulloak * test(refactor): refactor lockup linear tests using bulloak * test(refactor): refactor lockup tranched tests using bulloak * test(refactor): refactor nft descriptor tests using bulloak * test(refactor): fix bugs in core tests using bulloak * ci: update tree-path as per latest bulloak changelog * test(refactor): polish core tests using BTT * test(fix): bulloak check * test(refactor): streamedAmountOf * ci(refactor): remove newline * test: remove "is" from test branches * refactor: re-order checks in withdraw function * test(tree): delete are keywords from branches --------- Co-authored-by: andreivladbrg <andreivladbrg@gmail.com>
- Loading branch information
1 parent
5eb674a
commit 8558584
Showing
159 changed files
with
2,005 additions
and
2,400 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 15 additions & 15 deletions
30
test/core/integration/concrete/lockup-dynamic/create-with-durations/createWithDurations.tree
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
createWithDurations.t.sol | ||
├── when delegate called | ||
CreateWithDurations_LockupDynamic_Integration_Concrete_Test | ||
├── when delegate call | ||
│ └── it should revert | ||
└── when not delegate called | ||
├── when the segment count is too high | ||
└── when no delegate call | ||
├── when segment count exceeds max value | ||
│ └── it should revert | ||
└── when the segment count is not too high | ||
├── when at least one of the durations at index one or greater is zero | ||
└── when segment count not exceed max value | ||
├── when first index has zero duration | ||
│ └── it should revert | ||
└── when none of the durations is zero | ||
├── when the segment timestamp calculations overflow uint256 | ||
│ ├── when the start time is not less than the first segment timestamp | ||
└── when first index has non zero duration | ||
├── when timestamps calculation overflows | ||
│ ├── when start time exceeds first timestamp | ||
│ │ └── it should revert | ||
│ └── when the segment timestamps are not ordered | ||
│ └── it should revert | ||
└── when the segment timestamp calculations do not overflow uint256 | ||
│ └── when start time not exceeds first timestamp | ||
│ └── when timestamps not strictly increasing | ||
│ └── it should revert | ||
└── when timestamps calculation not overflow | ||
├── it should create the stream | ||
├── it should bump the next stream ID | ||
├── it should mint the NFT | ||
├── it should emit a {MetadataUpdate} event | ||
├── it should perform the ERC-20 transfers | ||
└── it should emit a {CreateLockupDynamicStream} event | ||
├── it should emit {CreateLockupDynamicStream} and {MetadataUpdate} events | ||
└── it should perform the ERC-20 transfers |
Oops, something went wrong.