Package net.minecraftforge.commontest
Class ForgeConfigSpecTest
java.lang.Object
net.minecraftforge.commontest.ForgeConfigSpecTest
- 
Nested Class SummaryNested Classes
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidprivate <T> voidexecuteSpeedTest(String configKey, T defaultKeyValue, String testName)voidprivate <T> List<ForgeConfigSpecTest.TestResult>runTestHarness(T defaultKeyValue, String testName, ForgeConfigSpec.ConfigValue<T> simpleValue, ForgeConfigSpec spec, int warmupRounds, int testRounds)private <T> ForgeConfigSpecTest.TestResultrunTestOnce(T defaultKeyValue, String testName, ForgeConfigSpec.ConfigValue<T> simpleValue, ForgeConfigSpec spec)private static voidsetUseCachesField(boolean value)void
- 
Field Details- 
TEST_CONFIG_PATH_TEMPLATE- See Also:
- Constant Field Values
 
- 
TEST_SIZEprivate final int TEST_SIZE- See Also:
- Constant Field Values
 
- 
useCachesField
 
- 
- 
Constructor Details- 
ForgeConfigSpecTestpublic ForgeConfigSpecTest()
 
- 
- 
Method Details- 
setUseCachesFieldprivate static void setUseCachesField(boolean value)
- 
simpleSpeedTest- Throws:
- IOException
 
- 
objectSpeedTest- Throws:
- IOException
 
- 
deepKeySpeedTest- Throws:
- IOException
 
- 
executeSpeedTestprivate <T> void executeSpeedTest(String configKey, T defaultKeyValue, String testName) throws IOException- Throws:
- IOException
 
- 
runTestHarnessprivate <T> List<ForgeConfigSpecTest.TestResult> runTestHarness(T defaultKeyValue, String testName, ForgeConfigSpec.ConfigValue<T> simpleValue, ForgeConfigSpec spec, int warmupRounds, int testRounds)
- 
runTestOnceprivate <T> ForgeConfigSpecTest.TestResult runTestOnce(T defaultKeyValue, String testName, ForgeConfigSpec.ConfigValue<T> simpleValue, ForgeConfigSpec spec)
 
-