Skip to content

Commit 8da7261

Browse files
committed
new test
1 parent 27c0281 commit 8da7261

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

extension/android/executorch_android/src/androidTest/java/org/pytorch/executorch/ModuleInstrumentationTest.kt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,15 @@ class ModuleInstrumentationTest {
5555
Assert.assertTrue(results[0].isTensor)
5656
}
5757

58+
@Test
59+
@Throws(IOException::class, URISyntaxException::class)
60+
fun testMethodMetadata() {
61+
val module = Module.load(getTestFilePath(TEST_FILE_NAME))
62+
63+
Assert.assertArrayEquals(arrayOf("forward"), module.getMethods())
64+
Assert.assertTrue(module.getMethodMetadata("forward").backends.isEmpty())
65+
}
66+
5867
@Test
5968
@Throws(IOException::class)
6069
fun testModuleLoadMethodAndForward() {

0 commit comments

Comments
 (0)