Package net.minecraftforge.common
Class ForgeConfigSpecTest
- java.lang.Object
-
- net.minecraftforge.common.ForgeConfigSpecTest
-
public class ForgeConfigSpecTest extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
ForgeConfigSpecTest.TestResult
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
TEST_CONFIG_PATH_TEMPLATE
private int
TEST_SIZE
-
Constructor Summary
Constructors Constructor Description ForgeConfigSpecTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deepKeySpeedTest()
private <T> void
executeSpeedTest(java.lang.String configKey, T defaultKeyValue, java.lang.String testName)
void
objectSpeedTest()
private <T> java.util.List<ForgeConfigSpecTest.TestResult>
runTestHarness(T defaultKeyValue, java.lang.String testName, ForgeConfigSpec.ConfigValue<T> simpleValue, ForgeConfigSpec spec, int warmupRounds, int testRounds)
private <T> ForgeConfigSpecTest.TestResult
runTestOnce(T defaultKeyValue, java.lang.String testName, ForgeConfigSpec.ConfigValue<T> simpleValue, ForgeConfigSpec spec)
void
simpleSpeedTest()
-
-
-
Field Detail
-
TEST_CONFIG_PATH_TEMPLATE
private final java.lang.String TEST_CONFIG_PATH_TEMPLATE
- See Also:
- Constant Field Values
-
TEST_SIZE
private final int TEST_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
simpleSpeedTest
public void simpleSpeedTest() throws java.io.IOException
- Throws:
java.io.IOException
-
objectSpeedTest
public void objectSpeedTest() throws java.io.IOException
- Throws:
java.io.IOException
-
deepKeySpeedTest
public void deepKeySpeedTest() throws java.io.IOException
- Throws:
java.io.IOException
-
executeSpeedTest
private <T> void executeSpeedTest(java.lang.String configKey, T defaultKeyValue, java.lang.String testName) throws java.io.IOException
- Throws:
java.io.IOException
-
runTestHarness
private <T> java.util.List<ForgeConfigSpecTest.TestResult> runTestHarness(T defaultKeyValue, java.lang.String testName, ForgeConfigSpec.ConfigValue<T> simpleValue, ForgeConfigSpec spec, int warmupRounds, int testRounds)
-
runTestOnce
private <T> ForgeConfigSpecTest.TestResult runTestOnce(T defaultKeyValue, java.lang.String testName, ForgeConfigSpec.ConfigValue<T> simpleValue, ForgeConfigSpec spec)
-
-