MCPcopy Create free account
hub / github.com/JetBrains/skija / testMethod

Method testMethod

tests/java/runner/TestRunner.java:212–223  ·  view source on GitHub ↗
(Object o, String methodName)

Source from the content-addressed store, hash-verified

210 }
211
212 public static void testMethod(Object o, String methodName) {
213 pushStack(methodName);
214 try {
215 Method m = o.getClass().getMethod(methodName);
216 m.invoke(o);
217 } catch(java.lang.reflect.InvocationTargetException e) {
218 runner.error(e.getCause());
219 } catch(Exception e) {
220 runner.error(e);
221 }
222 popStack();
223 }
224
225 public static void pushStack(String s) {
226 runner.stack.addLast(s);

Callers 2

executeMethod · 0.95
executeMethod · 0.95

Calls 3

pushStackMethod · 0.95
popStackMethod · 0.95
errorMethod · 0.45

Tested by

no test coverage detected