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

Method testImportedPkg

bind/java/SeqTest.java:490–516  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

488 }
489
490 public void testImportedPkg() {
491 Testpkg.callImportedI(new secondpkg.I() {
492 @Override public long f(long i) {
493 return i;
494 }
495 });
496 assertEquals("imported string should match", Secondpkg.HelloString, Secondpkg.hello());
497 secondpkg.I i = Testpkg.newImportedI();
498 secondpkg.S s = Testpkg.newImportedS();
499 i = Testpkg.getImportedVarI();
500 s = Testpkg.getImportedVarS();
501 assertEquals("numbers should match", 8, i.f(8));
502 assertEquals("numbers should match", 8, s.f(8));
503 Testpkg.setImportedVarI(i);
504 Testpkg.setImportedVarS(s);
505 ImportedFields fields = Testpkg.newImportedFields();
506 i = fields.getI();
507 s = fields.getS();
508 fields.setI(i);
509 fields.setS(s);
510 Testpkg.withImportedI(i);
511 Testpkg.withImportedS(s);
512
513 secondpkg.IF f = new AnI();
514 f = Testpkg.new_();
515 secondpkg.Ser ser = Testpkg.newSer();
516 }
517
518 public void testRoundtripEquality() {
519 I want = new AnI();

Callers

nothing calls this directly

Calls 2

helloMethod · 0.80
fMethod · 0.65

Tested by

no test coverage detected