MCPcopy Create free account
hub / github.com/ReadyTalk/avian / leafMethod

Method leafMethod

test/extra/Tails.java:18–22  ·  view source on GitHub ↗
(int n)

Source from the content-addressed store, hash-verified

16 }
17
18 private static int leafMethod(int n) {
19 expect(new Throwable().getStackTrace().length == 2);
20
21 return n;
22 }
23
24 public static void main(String[] args) {
25 expect(staticMethod(new Foo(), 0) == Limit);

Callers 3

staticMethodMethod · 0.95
interfaceMethodMethod · 0.80
virtualMethodMethod · 0.80

Calls 2

expectMethod · 0.95
getStackTraceMethod · 0.45

Tested by

no test coverage detected