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
void
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
void
-
Field Details
-
TEST_CONFIG_PATH_TEMPLATE
- See Also:
-
TEST_SIZE
private final int TEST_SIZE- See Also:
-
useCachesField
-
-
Constructor Details
-
ForgeConfigSpecTest
public ForgeConfigSpecTest()
-
-
Method Details
-
setUseCachesField
private static void setUseCachesField(boolean value) -
simpleSpeedTest
- Throws:
IOException
-
objectSpeedTest
- Throws:
IOException
-
deepKeySpeedTest
- Throws:
IOException
-
allEmptyCommentTest
- Throws:
IllegalStateException
-
topPaddedCommentTest
public void topPaddedCommentTest() -
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)
-