This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
stellar-stellar/infra/module_manager/test/gtest_module_manager_main.cpp

37 lines
886 B
C++
Raw Normal View History

#pragma GCC diagnostic ignored "-Wunused-parameter"
#include <gtest/gtest.h>
#include "module_manager/module_manager_interna.h"
/***********************************
* TEST PLUGIN MANAGER INIT & EXIT *
***********************************/
//TODO: test case, plugin_specs_load
TEST(stellar_module_manager, new_with_null_toml) {
struct stellar_module_manager *mod_mgr = stellar_module_manager_new("", 1, NULL);
stellar_module_manager_free(mod_mgr);
}
TEST(stellar_module_manager, new_with_empty_toml) {
struct stellar_module_manager *mod_mgr = stellar_module_manager_new("/dev/null", 1, NULL);
stellar_module_manager_free(mod_mgr);
}
/**********************************************
* GTEST MAIN *
**********************************************/
int main(int argc, char ** argv)
{
int ret=0;
::testing::InitGoogleTest(&argc, argv);
ret=RUN_ALL_TESTS();
return ret;
}