Skip to content

Commit a3f287a

Browse files
authored
feat: add vm.skip(bool) (#410)
* feat: add vm.skip(bool) * chore: dont name var like func name
1 parent 5086c7a commit a3f287a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Vm.sol

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,8 @@ interface Vm is VmSafe {
394394
function deal(address account, uint256 newBalance) external;
395395
// Sets an address' code
396396
function etch(address target, bytes calldata newRuntimeBytecode) external;
397+
// Marks a test as skipped. Must be called at the top of the test.
398+
function skip(bool skipTest) external;
397399
// Expects an error on next call
398400
function expectRevert(bytes calldata revertData) external;
399401
function expectRevert(bytes4 revertData) external;

0 commit comments

Comments
 (0)