MCPcopy Create free account
hub / github.com/golang/mobile / testInterfaceMethodReturnsInterface

Method testInterfaceMethodReturnsInterface

bind/java/SeqTest.java:275–285  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

273 }
274
275 public void testInterfaceMethodReturnsInterface() {
276 AnI obj = new AnI();
277 obj.name = "testing AnI.I";
278 I i = Testpkg.callI(obj);
279 assertEquals("Want AnI.I to return itself", i.string(), obj.string());
280
281 runGC();
282
283 i = Testpkg.callI(obj);
284 assertEquals("Want AnI.I to return itself", i.string(), obj.string());
285 }
286
287 public void testInterfaceMethodReturnsStructPointer() {
288 final AnI obj = new AnI();

Callers

nothing calls this directly

Calls 2

stringMethod · 0.95
runGCMethod · 0.95

Tested by

no test coverage detected