Browse Source

add error_manager stub

tags/v1.2.0
wangxiaotian22 3 years ago
parent
commit
0cf9ac5c21
1 changed files with 17 additions and 1 deletions
  1. +17
    -1
      tests/depends/error_manager/src/error_manager_stub.cc

+ 17
- 1
tests/depends/error_manager/src/error_manager_stub.cc View File

@@ -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<std::string> &key,
const std::vector<std::string> &value) {
const std::vector<std::string> &value) {
}

///
@@ -78,3 +80,17 @@
int ErrorManager::GetMstuneCompileFailedMsg(const std::string &graph_name, std::map<std::string, std::vector<std::string>> &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) {}

Loading…
Cancel
Save