TDengine/source/util/test/terrorTest.cpp

19 lines
No EOL
404 B
C++

#include <gtest/gtest.h>
#include <cassert>
#define TAOS_ERROR_INFO
#include <iostream>
#include "taoserror.h"
extern STaosError errors[];
using namespace std;
TEST(TAOS_ERROR_TEST, terror_test) {
int32_t errSize = taosGetErrSize();
for (int32_t i = 0; i < errSize; ++i) {
STaosError *pInfo = &errors[i];
std::cout << i + 1 << " " << pInfo->macro << " " << pInfo->val << std::endl;
}
}