MCPcopy Create free account
hub / github.com/HumbleUI/Skija / testClass

Method testClass

tests/java/runner/TestRunner.java:235–247  ·  view source on GitHub ↗
(Class<? extends Executable> cls)

Source from the content-addressed store, hash-verified

233
234
235 public static void testClass(Class<? extends Executable> cls) {
236 System.out.print(new Formatter().format("%-25s (", cls.getSimpleName()));
237 runner.assertsCurrent = 0;
238 pushStack(cls.getSimpleName());
239 try {
240 Executable test = cls.getDeclaredConstructor().newInstance();
241 test.execute();
242 } catch(Exception e) {
243 runner.error(e);
244 }
245 popStack();
246 System.out.print(")\n");
247 }
248
249 public static void testMethod(Object o, String methodName) {
250 pushStack(methodName);

Callers 1

mainMethod · 0.95

Calls 4

pushStackMethod · 0.95
executeMethod · 0.95
popStackMethod · 0.95
errorMethod · 0.45

Tested by

no test coverage detected