mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-25 21:40:05 +00:00
OptiPass3
This commit is contained in:
1 parent
b42d0e4710
commit
6096c39192
6 files changed
+400
-31
No files matched your search
@@ -0,0 +1,24 @@
|
||||
package art.arcane.iris.engine.framework;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.junit.Assert.assertFalse;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
public class EngineModeMaintenanceTest {
|
||||
@Test
|
||||
public void maintenanceDisablesContextCacheWithoutActivePregen() {
|
||||
assertTrue(EngineMode.shouldDisableContextCacheForMaintenance(true, false));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void maintenanceKeepsContextCacheForActivePregenWorld() {
|
||||
assertFalse(EngineMode.shouldDisableContextCacheForMaintenance(true, true));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void noMaintenanceKeepsContextCacheEnabled() {
|
||||
assertFalse(EngineMode.shouldDisableContextCacheForMaintenance(false, false));
|
||||
assertFalse(EngineMode.shouldDisableContextCacheForMaintenance(false, true));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user