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

Method testAssets

bind/java/SeqTest.java:78–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76 }
77
78 public void testAssets() {
79 // Make sure that a valid context is set before reading assets
80 Seq.setContext(getInstrumentation().getContext());
81 String want = "Hello, Assets.\n";
82 String got = Testpkg.readAsset();
83 assertEquals("Asset read", want, got);
84 }
85
86 public void testAdd() {
87 long res = Testpkg.add(3, 4);

Callers

nothing calls this directly

Calls 1

setContextMethod · 0.95

Tested by

no test coverage detected