Package net.minecraftforge.commontest
Class ForgeConfigSpecTest
java.lang.Object
net.minecraftforge.commontest.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)
private static void
setUseCachesField(boolean value)
void
-
Field Details
-
TEST_CONFIG_PATH_TEMPLATE
- See Also:
- Constant Field Values
-
TEST_SIZE
private final int TEST_SIZE- See Also:
- Constant Field Values
-
useCachesField
-
-
Constructor Details
-
ForgeConfigSpecTest
public ForgeConfigSpecTest()
-
-
Method Details
-
setUseCachesField
private static void setUseCachesField(boolean value) -
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)
-