We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 757716f commit 8c10f05Copy full SHA for 8c10f05
extension/module/test/module_test.cpp
@@ -69,6 +69,14 @@ TEST_F(ModuleTest, TestMethodNames) {
69
EXPECT_EQ(method_names.get(), std::unordered_set<std::string>{"forward"});
70
}
71
72
+TEST_F(ModuleTest, TestNumMethods) {
73
+ Module module(model_path_);
74
+
75
+ const auto num_methods = module.num_methods();
76
+ EXPECT_EQ(num_methods.error(), Error::Ok);
77
+ EXPECT_EQ(num_methods.get(), 1);
78
+}
79
80
TEST_F(ModuleTest, TestNonExistentMethodNames) {
81
Module module("/path/to/nonexistent/file.pte");
82
0 commit comments