Skip to content

Commit

Permalink
StrategyBase: improve coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
a17 committed Apr 12, 2024
1 parent 961dd31 commit 98354cf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/core/Vault.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ contract VaultTest is Test, FullMockSetup {
strategy.initVariants(address(0));
strategy.isHardWorkOnDepositAllowed();
strategy.isReadyForHardWork();

// cover StrategyBase
address[] memory assets_ = new address[](1);
assets_[0] = strategy.underlying();
uint[] memory amountsMax = new uint[](2);
vm.expectRevert(IControllable.IncorrectArrayLength.selector);
strategy.previewDepositAssets(assets_, amountsMax);
}

function testDepositWithdrawHardWork() public {
Expand Down

0 comments on commit 98354cf

Please sign in to comment.