Skip to content
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.

Commit

Permalink
refactor: add file ext .t.sol to skip build (test)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdubpark committed Feb 14, 2024
1 parent a86d688 commit bf70f73
Show file tree
Hide file tree
Showing 21 changed files with 25 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { IP } from "contracts/lib/IP.sol";
// test
import { MockRoyaltyPolicyLS } from "test/foundry/mocks/policy/MockRoyaltyPolicyLS.sol";
import { MockERC721 } from "test/foundry/mocks/token/MockERC721.sol";
import { BaseTest } from "test/foundry/utils/BaseTest.sol";
import { BaseTest } from "test/foundry/utils/BaseTest.t.sol";

contract BaseIntegration is BaseTest {
function setUp() public virtual override(BaseTest) {
Expand Down
4 changes: 2 additions & 2 deletions test/foundry/integration/big-bang/NftLicenseRoyalty.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import { IP } from "contracts/lib/IP.sol";
import { LSClaimer } from "contracts/modules/royalty-module/policies/LSClaimer.sol";

// test
import { BaseIntegration } from "test/foundry/integration/BaseIntegration.sol";
import { BaseIntegration } from "test/foundry/integration/BaseIntegration.t.sol";
// solhint-disable-next-line max-line-length
import { UMLPolicyGenericParams, UMLPolicyCommercialParams, UMLPolicyDerivativeParams } from "test/foundry/utils/LicensingHelper.sol";
import { UMLPolicyGenericParams, UMLPolicyCommercialParams, UMLPolicyDerivativeParams } from "test/foundry/utils/LicensingHelper.t.sol";

contract BigBang_Integration_NftLicenseRoyalty is BaseIntegration {
using EnumerableSet for EnumerableSet.UintSet;
Expand Down
4 changes: 2 additions & 2 deletions test/foundry/integration/big-bang/SingleNftCollection.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import { IP } from "contracts/lib/IP.sol";
import { Errors } from "contracts/lib/Errors.sol";

// test
import { BaseIntegration } from "test/foundry/integration/BaseIntegration.sol";
import { BaseIntegration } from "test/foundry/integration/BaseIntegration.t.sol";
import { MintPaymentPolicyFrameworkManager } from "test/foundry/mocks/licensing/MintPaymentPolicyFrameworkManager.sol";
// solhint-disable-next-line max-line-length
import { UMLPolicyGenericParams, UMLPolicyCommercialParams, UMLPolicyDerivativeParams } from "test/foundry/utils/LicensingHelper.sol";
import { UMLPolicyGenericParams, UMLPolicyCommercialParams, UMLPolicyDerivativeParams } from "test/foundry/utils/LicensingHelper.t.sol";

contract BigBang_Integration_SingleNftCollection is BaseIntegration {
using EnumerableSet for EnumerableSet.UintSet;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pragma solidity ^0.8.23;

import { Test } from "forge-std/Test.sol";

import { Users, UsersLib } from "test/foundry/utils/Users.sol";
import { Users, UsersLib } from "test/foundry/utils/Users.t.sol";

contract Integration_Flow_EmergenceUniverse_Test is Test {
Users internal u;
Expand Down
2 changes: 1 addition & 1 deletion test/foundry/modules/ModuleBase.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pragma solidity ^0.8.23;

import { IModule } from "contracts/interfaces/modules/base/IModule.sol";

import { BaseTest } from "test/foundry/utils/BaseTest.sol";
import { BaseTest } from "test/foundry/utils/BaseTest.t.sol";

/// @title Module Base Test Contract
/// @notice Base contract for testing standard module functionality.
Expand Down
4 changes: 2 additions & 2 deletions test/foundry/modules/dispute/ArbitrationPolicySP.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import { Errors } from "contracts/lib/Errors.sol";
import { ArbitrationPolicySP } from "contracts/modules/dispute-module/policies/ArbitrationPolicySP.sol";
// test
// solhint-disable-next-line max-line-length
import { UMLPolicyGenericParams, UMLPolicyCommercialParams, UMLPolicyDerivativeParams } from "test/foundry/utils/LicensingHelper.sol";
import { BaseTest } from "test/foundry/utils/BaseTest.sol";
import { UMLPolicyGenericParams, UMLPolicyCommercialParams, UMLPolicyDerivativeParams } from "test/foundry/utils/LicensingHelper.t.sol";
import { BaseTest } from "test/foundry/utils/BaseTest.t.sol";

contract TestArbitrationPolicySP is BaseTest {
event GovernanceWithdrew(uint256 amount);
Expand Down
4 changes: 2 additions & 2 deletions test/foundry/modules/dispute/DisputeModule.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import { ArbitrationPolicySP } from "contracts/modules/dispute-module/policies/A
import { ShortStringOps } from "contracts/utils/ShortStringOps.sol";
// test
// solhint-disable-next-line max-line-length
import { UMLPolicyGenericParams, UMLPolicyCommercialParams, UMLPolicyDerivativeParams } from "test/foundry/utils/LicensingHelper.sol";
import { BaseTest } from "test/foundry/utils/BaseTest.sol";
import { UMLPolicyGenericParams, UMLPolicyCommercialParams, UMLPolicyDerivativeParams } from "test/foundry/utils/LicensingHelper.t.sol";
import { BaseTest } from "test/foundry/utils/BaseTest.t.sol";

contract DisputeModuleTest is BaseTest {
event TagWhitelistUpdated(bytes32 tag, bool allowed);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { IRoyaltyModule } from "contracts/interfaces/modules/royalty/IRoyaltyMod
import { Errors } from "contracts/lib/Errors.sol";
import { UMLPolicyFrameworkManager } from "contracts/modules/licensing/UMLPolicyFrameworkManager.sol";

import { BaseTest } from "test/foundry/utils/BaseTest.sol";
import { BaseTest } from "test/foundry/utils/BaseTest.t.sol";

contract UMLPolicyFrameworkCompatibilityTest is BaseTest {
UMLPolicyFrameworkManager internal umlFramework;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { UMLPolicy } from "contracts/interfaces/modules/licensing/IUMLPolicyFram
import { UMLPolicyFrameworkManager } from "contracts/modules/licensing/UMLPolicyFrameworkManager.sol";
import { IPolicyFrameworkManager } from "contracts/interfaces/modules/licensing/IPolicyFrameworkManager.sol";

import { BaseTest } from "test/foundry/utils/BaseTest.sol";
import { BaseTest } from "test/foundry/utils/BaseTest.t.sol";

contract UMLPolicyFrameworkMultiParentTest is BaseTest {
UMLPolicyFrameworkManager internal umlFramework;
Expand Down
2 changes: 1 addition & 1 deletion test/foundry/modules/licensing/UMLPolicyFramework.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { UMLPolicyFrameworkManager } from "contracts/modules/licensing/UMLPolicy

import { MockERC721 } from "test/foundry/mocks/token/MockERC721.sol";
import { MockTokenGatedHook } from "test/foundry/mocks/MockTokenGatedHook.sol";
import { BaseTest } from "test/foundry/utils/BaseTest.sol";
import { BaseTest } from "test/foundry/utils/BaseTest.t.sol";

contract UMLPolicyFrameworkTest is BaseTest {
UMLPolicyFrameworkManager internal umlFramework;
Expand Down
4 changes: 2 additions & 2 deletions test/foundry/modules/royalty/LSClaimer.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import { LSClaimer } from "contracts/modules/royalty-module/policies/LSClaimer.s

// test
// solhint-disable-next-line max-line-length
import { UMLPolicyGenericParams, UMLPolicyCommercialParams, UMLPolicyDerivativeParams } from "test/foundry/utils/LicensingHelper.sol";
import { BaseTest } from "test/foundry/utils/BaseTest.sol";
import { UMLPolicyGenericParams, UMLPolicyCommercialParams, UMLPolicyDerivativeParams } from "test/foundry/utils/LicensingHelper.t.sol";
import { BaseTest } from "test/foundry/utils/BaseTest.t.sol";

contract TestLSClaimer is BaseTest {
address[] public LONG_CHAIN = new address[](100);
Expand Down
2 changes: 1 addition & 1 deletion test/foundry/modules/royalty/RoyaltyModule.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Errors } from "contracts/lib/Errors.sol";
import { RoyaltyModule } from "contracts/modules/royalty-module/RoyaltyModule.sol";

// tests
import { BaseTest } from "../../utils/BaseTest.sol";
import { BaseTest } from "../../utils/BaseTest.t.sol";

contract TestRoyaltyModule is BaseTest {
event RoyaltyPolicyWhitelistUpdated(address royaltyPolicy, bool allowed);
Expand Down
2 changes: 1 addition & 1 deletion test/foundry/modules/royalty/RoyaltyPolicyLS.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { ERC20 } from "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import { RoyaltyPolicyLS } from "../../../../contracts/modules/royalty-module/policies/RoyaltyPolicyLS.sol";
import { Errors } from "../../../../contracts/lib/Errors.sol";
// tests
import { BaseTest } from "../../utils/BaseTest.sol";
import { BaseTest } from "../../utils/BaseTest.t.sol";

contract TestLSClaimer is BaseTest {
RoyaltyPolicyLS internal testRoyaltyPolicyLS;
Expand Down
2 changes: 1 addition & 1 deletion test/foundry/registries/IPAssetRegistry.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { IP } from "contracts/lib/IP.sol";
import { IPAssetRegistry } from "contracts/registries/IPAssetRegistry.sol";
import { Errors } from "contracts/lib/Errors.sol";

import { BaseTest } from "../utils/BaseTest.sol";
import { BaseTest } from "../utils/BaseTest.t.sol";

/// @title IP Asset Registry Testing Contract
/// @notice Contract for testing core IP registration.
Expand Down
2 changes: 1 addition & 1 deletion test/foundry/registries/ModuleRegistry.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { IHookModule } from "contracts/interfaces/modules/base/IHookModule.sol";
import { MockModule } from "../mocks/module/MockModule.sol";
import { ICustomModule, CustomModule } from "../mocks/CustomModuleType.sol";
import { MockTokenGatedHook } from "../mocks/MockTokenGatedHook.sol";
import { BaseTest } from "../utils/BaseTest.sol";
import { BaseTest } from "../utils/BaseTest.t.sol";

contract ModuleRegistryTest is BaseTest {
MockModule public module;
Expand Down
2 changes: 1 addition & 1 deletion test/foundry/registries/metadata/IPAssetRenderer.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Base64 } from "@openzeppelin/contracts/utils/Base64.sol";

import { IP } from "contracts/lib/IP.sol";

import { BaseTest } from "test/foundry/utils/BaseTest.sol";
import { BaseTest } from "test/foundry/utils/BaseTest.t.sol";

/// @title IP Asset Renderer Test Contract
/// @notice Tests IP asset rendering functionality.
Expand Down
2 changes: 1 addition & 1 deletion test/foundry/registries/metadata/MetadataProvider.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { MetadataProviderV1 } from "contracts/registries/metadata/MetadataProvid
import { IMetadataProvider } from "contracts/interfaces/registries/metadata/IMetadataProvider.sol";
import { Errors } from "contracts/lib/Errors.sol";

import { BaseTest } from "test/foundry/utils/BaseTest.sol";
import { BaseTest } from "test/foundry/utils/BaseTest.t.sol";
import { MockMetadataProviderV2 } from "test/foundry/mocks/MockMetadataProviderV2.sol";

/// @title IP Metadata Provider Testing Contract
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ import { IP_RESOLVER_MODULE_KEY, REGISTRATION_MODULE_KEY, DISPUTE_MODULE_KEY, TA
import { AccessPermission } from "../../../contracts/lib/AccessPermission.sol";

// test
import { DeployHelper } from "./DeployHelper.sol";
import { LicensingHelper } from "./LicensingHelper.sol";
import { DeployHelper } from "./DeployHelper.t.sol";
import { LicensingHelper } from "./LicensingHelper.t.sol";
import { MockERC20 } from "../mocks/token/MockERC20.sol";
import { MockERC721 } from "../mocks/token/MockERC721.sol";
import { Users, UsersLib } from "./Users.sol";
import { Users, UsersLib } from "./Users.t.sol";

/// @title Base Test Contract
/// @notice This contract provides a set of protocol-related testing utilities
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit bf70f73

Please sign in to comment.