Package net.minecraftforge.common
Class ForgeConfigSpecTest
java.lang.Object
net.minecraftforge.common.ForgeConfigSpecTest
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
private <T> void
executeSpeedTest
(String configKey, T defaultKeyValue, String testName) void
private <T> List<ForgeConfigSpecTest.TestResult>
runTestHarness
(T defaultKeyValue, String testName, ForgeConfigSpec.ConfigValue<T> simpleValue, ForgeConfigSpec spec, int warmupRounds, int testRounds) private <T> ForgeConfigSpecTest.TestResult
runTestOnce
(T defaultKeyValue, String testName, ForgeConfigSpec.ConfigValue<T> simpleValue, ForgeConfigSpec spec) void
-
Field Details
-
TEST_CONFIG_PATH_TEMPLATE
- See Also:
-
TEST_SIZE
private final int TEST_SIZE- See Also:
-
-
Constructor Details
-
ForgeConfigSpecTest
public ForgeConfigSpecTest()
-
-
Method Details
-
simpleSpeedTest
- Throws:
IOException
-
objectSpeedTest
- Throws:
IOException
-
deepKeySpeedTest
- Throws:
IOException
-
executeSpeedTest
private <T> void executeSpeedTest(String configKey, T defaultKeyValue, String testName) throws IOException - Throws:
IOException
-
runTestHarness
private <T> List<ForgeConfigSpecTest.TestResult> runTestHarness(T defaultKeyValue, String testName, ForgeConfigSpec.ConfigValue<T> simpleValue, ForgeConfigSpec spec, int warmupRounds, int testRounds) -
runTestOnce
private <T> ForgeConfigSpecTest.TestResult runTestOnce(T defaultKeyValue, String testName, ForgeConfigSpec.ConfigValue<T> simpleValue, ForgeConfigSpec spec)
-