mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-07-04 00:45:57 +00:00
clean up tests
This commit is contained in:
parent
9715171aba
commit
eb50b29e95
@ -1,25 +0,0 @@
|
|||||||
package noise;
|
|
||||||
|
|
||||||
import com.dfsek.tectonic.annotations.Default;
|
|
||||||
import com.dfsek.tectonic.annotations.Value;
|
|
||||||
import com.dfsek.tectonic.config.ConfigTemplate;
|
|
||||||
|
|
||||||
import com.dfsek.terra.api.config.meta.Meta;
|
|
||||||
import com.dfsek.terra.api.util.collection.ProbabilityCollection;
|
|
||||||
|
|
||||||
|
|
||||||
public class ColorConfigTemplate implements ConfigTemplate {
|
|
||||||
@Value("enable")
|
|
||||||
@Default
|
|
||||||
private @Meta boolean enable = false;
|
|
||||||
@Value("colors")
|
|
||||||
private @Meta ProbabilityCollection<@Meta Integer> colors;
|
|
||||||
|
|
||||||
public boolean enable() {
|
|
||||||
return enable;
|
|
||||||
}
|
|
||||||
|
|
||||||
public ProbabilityCollection<Integer> getColors() {
|
|
||||||
return colors;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,17 +0,0 @@
|
|||||||
package noise;
|
|
||||||
|
|
||||||
import com.dfsek.tectonic.annotations.Value;
|
|
||||||
import com.dfsek.tectonic.config.ConfigTemplate;
|
|
||||||
|
|
||||||
import com.dfsek.terra.api.noise.NoiseSampler;
|
|
||||||
|
|
||||||
|
|
||||||
@SuppressWarnings("unused")
|
|
||||||
public class NoiseConfigTemplate implements ConfigTemplate {
|
|
||||||
@Value(".")
|
|
||||||
private NoiseSampler builder;
|
|
||||||
|
|
||||||
public NoiseSampler getBuilder() {
|
|
||||||
return builder;
|
|
||||||
}
|
|
||||||
}
|
|
@ -3,14 +3,16 @@ package profiler;
|
|||||||
import com.dfsek.terra.api.profiler.Profiler;
|
import com.dfsek.terra.api.profiler.Profiler;
|
||||||
import com.dfsek.terra.profiler.ProfilerImpl;
|
import com.dfsek.terra.profiler.ProfilerImpl;
|
||||||
|
|
||||||
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
|
|
||||||
public class ProfilerTest {
|
public class ProfilerTest {
|
||||||
private static final Profiler PROFILER = new ProfilerImpl();
|
private static final Profiler PROFILER = new ProfilerImpl();
|
||||||
|
|
||||||
//@Test
|
@Test
|
||||||
public static void main(String... a) throws InterruptedException {
|
public void testProfiler() throws InterruptedException {
|
||||||
//PROFILER.start();
|
//PROFILER.start();
|
||||||
for(int i = 0; i < 1000; i++) {
|
for(int i = 0; i < 100; i++) {
|
||||||
doThing();
|
doThing();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user