MCPcopy
hub / github.com/libgdx/libgdx / test

Method test

tests/gdx-tests/src/com/badlogic/gdx/tests/SelectTest.java:132–143  ·  view source on GitHub ↗
(int runs, int k)

Source from the content-addressed store, hash-verified

130 }
131
132 public static void test (int runs, int k) {
133 // k = kth order statistic
134 comparisonsMade = 0;
135 perf.reset();
136 allPerf.reset();
137 allRandom();
138 enemy.shuffle();
139 player.shuffle();
140 for (int i = 0; i < runs; i++) {
141 getKthNearestEnemy(quiet, k);
142 }
143 }
144
145 public static void allRandom () {
146 for (Dummy d : player) {

Callers 2

correctnessTestMethod · 0.95
performanceTestMethod · 0.95

Calls 4

allRandomMethod · 0.95
getKthNearestEnemyMethod · 0.95
resetMethod · 0.65
shuffleMethod · 0.45

Tested by

no test coverage detected