🌈 style(stellar core): remove useless code
This commit is contained in:
@@ -6,41 +6,6 @@
|
||||
|
||||
#define TOPIC_NAME_MAX 512
|
||||
|
||||
#if 0
|
||||
void whitebox_test_plugin_manager_intrisic_metadata(struct stellar *st, struct plugin_manager_schema *plug_mgr)
|
||||
{
|
||||
SCOPED_TRACE("whitebox test intrisic metadata");
|
||||
|
||||
EXPECT_TRUE(plug_mgr!=NULL);
|
||||
|
||||
EXPECT_EQ(plug_mgr->st, st);
|
||||
|
||||
//load spec null
|
||||
EXPECT_TRUE(plug_mgr->plugin_load_specs_array==NULL);
|
||||
|
||||
//session exdata schema null
|
||||
EXPECT_TRUE(plug_mgr->exdata_schema!=NULL);
|
||||
|
||||
//stellar mq schema null
|
||||
EXPECT_TRUE(plug_mgr->stellar_mq_schema_array==NULL);
|
||||
|
||||
//registered plugin array null
|
||||
EXPECT_TRUE(plug_mgr->registered_polling_plugin_array==NULL);
|
||||
EXPECT_TRUE(plug_mgr->registered_packet_plugin_array==NULL);
|
||||
|
||||
EXPECT_TRUE(plug_mgr->per_thread_data!=NULL);
|
||||
int thread_num=stellar_get_worker_thread_num(st);
|
||||
for(int i=0; i<thread_num; i++)
|
||||
{
|
||||
EXPECT_TRUE(plug_mgr->per_thread_data[i].exdata_array==NULL);
|
||||
EXPECT_TRUE(plug_mgr->per_thread_data[i].dealth_letter_queue==NULL);
|
||||
for(int j=0; j<STELLAR_MQ_PRIORITY_MAX; j++)
|
||||
EXPECT_TRUE(plug_mgr->per_thread_data[i].priority_mq[j]==NULL);
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
/*******************************************
|
||||
* TEST MQ SCHEMA *
|
||||
*******************************************/
|
||||
@@ -226,7 +191,7 @@ static void test_mq_on_packet_in_out(int topic_id, void *msg, void *plugin_env)
|
||||
return;
|
||||
}
|
||||
|
||||
TEST(plugin_manager, basic_pub_sub) {
|
||||
TEST(mq_runtime, basic_pub_sub) {
|
||||
|
||||
struct mq_schema *s = mq_schema_new();
|
||||
EXPECT_TRUE(s!=NULL);
|
||||
@@ -446,7 +411,7 @@ static void overlimit_pub_on_packet(struct packet *pkt, void *plugin_env)
|
||||
}
|
||||
//TODO: test case mq for overlimit
|
||||
|
||||
TEST(plugin_manager, packet_plugins_pub_overlimit) {
|
||||
TEST(mq_runtime, packet_plugins_pub_overlimit) {
|
||||
|
||||
struct stellar st={0};
|
||||
struct plugin_manager_schema *plug_mgr = plugin_manager_init(&st, NULL, MAX_MSG_PER_STAGE);
|
||||
@@ -587,7 +552,7 @@ static void test_session_mq_priority_plugin_2_on_msg(int topic_id, const void *m
|
||||
return;
|
||||
}
|
||||
|
||||
TEST(plugin_manager, test_session_mq_priority) {
|
||||
TEST(mq_runtime, test_session_mq_priority) {
|
||||
|
||||
struct stellar st={0};
|
||||
struct session_plugin_env env;
|
||||
|
||||
Reference in New Issue
Block a user