ulib/3party/rpc_core/test/main.cpp

32 lines
521 B
C++
Raw Normal View History

2024-01-21 16:05:01 +08:00
#include <cstdio>
#include "rpc_core.hpp"
#include "rpc_core/detail/log.h"
#include "test.h"
using namespace rpc_core_test;
int main() {
RPC_CORE_LOG("version: %d", RPC_CORE_VERSION);
printf("\n");
RPC_CORE_LOG("test_serialize...");
test_serialize();
printf("\n");
RPC_CORE_LOG("test_data_packer...");
test_data_packer();
#ifdef RPC_CORE_TEST_PLUGIN
printf("\n");
RPC_CORE_LOG("test_plugin...");
test_plugin();
#endif
printf("\n");
RPC_CORE_LOG("test_rpc...");
test_rpc();
return 0;
}