TDengine/source/common/test/trowTest.cpp

23 lines
477 B
C++
Raw Normal View History

2021-11-22 05:45:41 +00:00
#include <gtest/gtest.h>
#include "trow.h"
TEST(td_row_test, build_row_to_target) {
2021-11-30 08:24:21 +00:00
#if 0
2021-11-22 05:45:41 +00:00
char dst[1024];
SRow* pRow = (SRow*)dst;
int ncols = 10;
col_id_t cid;
void* pData;
SRowBuilder rb = trbInit(TD_OR_ROW_BUILDER, NULL, 0, pRow, 1024);
trbSetRowInfo(&rb, false, 0);
trbSetRowTS(&rb, 1637550210000);
for (int c = 0; c < ncols; c++) {
cid = c;
if (trbWriteCol(&rb, pData, cid) < 0) {
// TODO
}
}
2021-11-30 08:24:21 +00:00
#endif
2021-11-22 05:45:41 +00:00
}