DeployVariations.t.sol 1.08 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
// SPDX-License-Identifier: MIT
pragma solidity 0.8.15;

// Testing utilities
import { CommonTest } from "test/setup/CommonTest.sol";

contract DeployVariations_Test is CommonTest {
    function setUp() public override {
        // Prevent calling the base CommonTest.setUp() function, as we will run it within the test functions
        // after setting the feature flags
    }

    // Enable features which should be possible to enable or disable regardless of other options.
14
    function enableAddOns(bool _enableAltDa) public {
15 16 17 18 19
        if (_enableAltDa) {
            super.enableAltDA();
        }
    }

20 21 22
    /// @dev It should be possible to enable Fault Proofs with Alt-DA.
    function testFuzz_enableFaultProofs_succeeds(bool _enableAltDa) public virtual {
        enableAddOns(_enableAltDa);
23

24 25 26
        super.setUp();
    }

27 28 29
    /// @dev It should be possible to enable Fault Proofs and Interop with Alt-DA.
    function test_enableInteropAndFaultProofs_succeeds(bool _enableAltDa) public virtual {
        enableAddOns(_enableAltDa);
30
        super.enableInterop();
31

32 33 34
        super.setUp();
    }
}