From d0f89f200d0ca3cf2aa77c0a3560ba9bcfdb5190 Mon Sep 17 00:00:00 2001 From: YBM Date: Wed, 11 Sep 2024 10:10:47 -0500 Subject: [PATCH] test: remove mock test files from coverage --- src/test/mocks/MockERC4626.sol | 5 +++++ src/test/mocks/MockGsmFailedBuyAssetRemainingGhoBalance.sol | 5 +++++ src/test/mocks/MockGsmFailedGetGhoAmountForBuyAsset.sol | 5 +++++ src/test/mocks/MockGsmFailedSellAssetRemainingGhoBalance.sol | 5 +++++ src/test/mocks/MockUpgradeable.sol | 5 +++++ 5 files changed, 25 insertions(+) diff --git a/src/test/mocks/MockERC4626.sol b/src/test/mocks/MockERC4626.sol index 74a0279b..e99b3b8e 100644 --- a/src/test/mocks/MockERC4626.sol +++ b/src/test/mocks/MockERC4626.sol @@ -11,4 +11,9 @@ contract MockERC4626 is ERC4626 { string memory symbol, address asset ) ERC4626(IERC20(asset)) ERC20(name, symbol) {} + + function test_coverage_ignore() public virtual { + // Intentionally left blank. + // Excludes contract from coverage. + } } diff --git a/src/test/mocks/MockGsmFailedBuyAssetRemainingGhoBalance.sol b/src/test/mocks/MockGsmFailedBuyAssetRemainingGhoBalance.sol index 087e1cae..c36c66a4 100644 --- a/src/test/mocks/MockGsmFailedBuyAssetRemainingGhoBalance.sol +++ b/src/test/mocks/MockGsmFailedBuyAssetRemainingGhoBalance.sol @@ -88,6 +88,11 @@ contract MockGsmFailedBuyAssetRemainingGhoBalance is _; } + function test_coverage_ignore() public virtual { + // Intentionally left blank. + // Excludes contract from coverage. + } + /** * @dev Constructor * @param ghoToken The address of the GHO token contract diff --git a/src/test/mocks/MockGsmFailedGetGhoAmountForBuyAsset.sol b/src/test/mocks/MockGsmFailedGetGhoAmountForBuyAsset.sol index b61b1da7..b71ffab7 100644 --- a/src/test/mocks/MockGsmFailedGetGhoAmountForBuyAsset.sol +++ b/src/test/mocks/MockGsmFailedGetGhoAmountForBuyAsset.sol @@ -88,6 +88,11 @@ contract MockGsmFailedGetGhoAmountForBuyAsset is _; } + function test_coverage_ignore() public virtual { + // Intentionally left blank. + // Excludes contract from coverage. + } + /** * @dev Constructor * @param ghoToken The address of the GHO token contract diff --git a/src/test/mocks/MockGsmFailedSellAssetRemainingGhoBalance.sol b/src/test/mocks/MockGsmFailedSellAssetRemainingGhoBalance.sol index 7093746b..81831e4e 100644 --- a/src/test/mocks/MockGsmFailedSellAssetRemainingGhoBalance.sol +++ b/src/test/mocks/MockGsmFailedSellAssetRemainingGhoBalance.sol @@ -88,6 +88,11 @@ contract MockGsmFailedSellAssetRemainingGhoBalance is _; } + function test_coverage_ignore() public virtual { + // Intentionally left blank. + // Excludes contract from coverage. + } + /** * @dev Constructor * @param ghoToken The address of the GHO token contract diff --git a/src/test/mocks/MockUpgradeable.sol b/src/test/mocks/MockUpgradeable.sol index 285679b0..a490a575 100644 --- a/src/test/mocks/MockUpgradeable.sol +++ b/src/test/mocks/MockUpgradeable.sol @@ -14,6 +14,11 @@ contract MockUpgradeable is Initializable { // Intentionally left bank } + function test_coverage_ignore() public virtual { + // Intentionally left blank. + // Excludes contract from coverage. + } + /** * @dev Initializer */