From 0cf9ac5c21d39baede08b00a0fba09068dc9e5b2 Mon Sep 17 00:00:00 2001 From: wangxiaotian22 Date: Tue, 2 Mar 2021 21:10:54 +0800 Subject: [PATCH] add error_manager stub --- .../error_manager/src/error_manager_stub.cc | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/tests/depends/error_manager/src/error_manager_stub.cc b/tests/depends/error_manager/src/error_manager_stub.cc index a57b2457..eadc8687 100644 --- a/tests/depends/error_manager/src/error_manager_stub.cc +++ b/tests/depends/error_manager/src/error_manager_stub.cc @@ -16,6 +16,8 @@ #include "common/util/error_manager/error_manager.h" +using namespace ErrorMessage; + ErrorManager &ErrorManager::GetInstance() { static ErrorManager instance; return instance; @@ -58,7 +60,7 @@ /// @param [in] value: vector parameter value /// void ErrorManager::ATCReportErrMessage(std::string error_code, const std::vector &key, - const std::vector &value) { + const std::vector &value) { } /// @@ -78,3 +80,17 @@ int ErrorManager::GetMstuneCompileFailedMsg(const std::string &graph_name, std::map> &msg_map) { return 0; } + void ErrorManager::GenWorkStreamIdDefault() {} + + void ErrorManager::GenWorkStreamIdBySessionGraph(uint64_t session_id, uint64_t graph_id) {} + + const std::string &ErrorManager::GetLogHeader() { return "[TEST][TEST]"; } + + struct Context &ErrorManager::GetErrorContext() { + struct Context error_context; + return error_context; + } + +void ErrorManager::SetErrorContext(struct Context error_context) {} + +void ErrorManager::SetStage(const std::string &first_stage, const std::string &second_stage) {}