🦄 refactor(module manager): remove utarray

This commit is contained in:
yangwei
2024-09-25 17:44:27 +08:00
parent eccd6e102d
commit 0308205547
3 changed files with 58 additions and 62 deletions

View File

@@ -32,8 +32,8 @@ TEST(module_manager_internal, module_specs_load) {
toml_table_t *conf = toml_parse((char*)gtest_mock_spec_toml, NULL, 0);
EXPECT_TRUE(conf!=NULL);
int mod_num=0;
struct module_specific *specs=module_specs_load(conf, &mod_num);
struct module_spec_load *specs=NULL;
int mod_num=module_specs_load(conf, &specs);
EXPECT_EQ(mod_num, 1);
EXPECT_EQ(specs[0].on_init_cb, gtest_mock_init);