change test cases
This commit is contained in:
parent
a2c3961ce6
commit
7a2fd45652
|
@ -64,10 +64,10 @@ class DndTestDb : public ::testing::Test {
|
||||||
ASSERT_NE(pShowRsp, nullptr);
|
ASSERT_NE(pShowRsp, nullptr);
|
||||||
pShowRsp->showId = htonl(pShowRsp->showId);
|
pShowRsp->showId = htonl(pShowRsp->showId);
|
||||||
pMeta = &pShowRsp->tableMeta;
|
pMeta = &pShowRsp->tableMeta;
|
||||||
pMeta->numOfTags = htons(pMeta->numOfTags);
|
pMeta->numOfTags = htonl(pMeta->numOfTags);
|
||||||
pMeta->numOfColumns = htons(pMeta->numOfColumns);
|
pMeta->numOfColumns = htonl(pMeta->numOfColumns);
|
||||||
pMeta->sversion = htons(pMeta->sversion);
|
pMeta->sversion = htonl(pMeta->sversion);
|
||||||
pMeta->tversion = htons(pMeta->tversion);
|
pMeta->tversion = htonl(pMeta->tversion);
|
||||||
pMeta->tuid = htobe64(pMeta->tuid);
|
pMeta->tuid = htobe64(pMeta->tuid);
|
||||||
pMeta->suid = htobe64(pMeta->suid);
|
pMeta->suid = htobe64(pMeta->suid);
|
||||||
|
|
||||||
|
|
|
@ -78,11 +78,11 @@ class DndTestDnode : public ::testing::Test {
|
||||||
ASSERT_NE(pShowRsp, nullptr);
|
ASSERT_NE(pShowRsp, nullptr);
|
||||||
pShowRsp->showId = htonl(pShowRsp->showId);
|
pShowRsp->showId = htonl(pShowRsp->showId);
|
||||||
pMeta = &pShowRsp->tableMeta;
|
pMeta = &pShowRsp->tableMeta;
|
||||||
pMeta->numOfTags = htons(pMeta->numOfTags);
|
pMeta->numOfTags = htonl(pMeta->numOfTags);
|
||||||
pMeta->numOfColumns = htons(pMeta->numOfColumns);
|
pMeta->numOfColumns = htonl(pMeta->numOfColumns);
|
||||||
pMeta->sversion = htons(pMeta->sversion);
|
pMeta->sversion = htonl(pMeta->sversion);
|
||||||
pMeta->tversion = htons(pMeta->tversion);
|
pMeta->tversion = htons(pMeta->tversion);
|
||||||
pMeta->tuid = htobe64(pMeta->tuid);
|
pMeta->tuid = htonl(pMeta->tuid);
|
||||||
pMeta->suid = htobe64(pMeta->suid);
|
pMeta->suid = htobe64(pMeta->suid);
|
||||||
|
|
||||||
showId = pShowRsp->showId;
|
showId = pShowRsp->showId;
|
||||||
|
|
|
@ -63,10 +63,10 @@ class DndTestUser : public ::testing::Test {
|
||||||
ASSERT_NE(pShowRsp, nullptr);
|
ASSERT_NE(pShowRsp, nullptr);
|
||||||
pShowRsp->showId = htonl(pShowRsp->showId);
|
pShowRsp->showId = htonl(pShowRsp->showId);
|
||||||
pMeta = &pShowRsp->tableMeta;
|
pMeta = &pShowRsp->tableMeta;
|
||||||
pMeta->numOfTags = htons(pMeta->numOfTags);
|
pMeta->numOfTags = htonl(pMeta->numOfTags);
|
||||||
pMeta->numOfColumns = htons(pMeta->numOfColumns);
|
pMeta->numOfColumns = htonl(pMeta->numOfColumns);
|
||||||
pMeta->sversion = htons(pMeta->sversion);
|
pMeta->sversion = htonl(pMeta->sversion);
|
||||||
pMeta->tversion = htons(pMeta->tversion);
|
pMeta->tversion = htonl(pMeta->tversion);
|
||||||
pMeta->tuid = htobe64(pMeta->tuid);
|
pMeta->tuid = htobe64(pMeta->tuid);
|
||||||
pMeta->suid = htobe64(pMeta->suid);
|
pMeta->suid = htobe64(pMeta->suid);
|
||||||
|
|
||||||
|
|
|
@ -834,7 +834,7 @@ static int32_t mndGetDbMeta(SMnodeMsg *pMsg, SShowObj *pShow, STableMetaMsg *pMe
|
||||||
pSchema[cols].bytes = htons(pShow->bytes[cols]);
|
pSchema[cols].bytes = htons(pShow->bytes[cols]);
|
||||||
cols++;
|
cols++;
|
||||||
|
|
||||||
pMeta->numOfColumns = htons(cols);
|
pMeta->numOfColumns = htonl(cols);
|
||||||
pShow->numOfColumns = cols;
|
pShow->numOfColumns = cols;
|
||||||
|
|
||||||
pShow->offset[0] = 0;
|
pShow->offset[0] = 0;
|
||||||
|
|
|
@ -570,7 +570,7 @@ static int32_t mndGetConfigMeta(SMnodeMsg *pMsg, SShowObj *pShow, STableMetaMsg
|
||||||
pSchema[cols].bytes = htons(pShow->bytes[cols]);
|
pSchema[cols].bytes = htons(pShow->bytes[cols]);
|
||||||
cols++;
|
cols++;
|
||||||
|
|
||||||
pMeta->numOfColumns = htons(cols);
|
pMeta->numOfColumns = htonl(cols);
|
||||||
pShow->numOfColumns = cols;
|
pShow->numOfColumns = cols;
|
||||||
|
|
||||||
pShow->offset[0] = 0;
|
pShow->offset[0] = 0;
|
||||||
|
@ -677,7 +677,7 @@ static int32_t mndGetDnodeMeta(SMnodeMsg *pMsg, SShowObj *pShow, STableMetaMsg *
|
||||||
pSchema[cols].bytes = htons(pShow->bytes[cols]);
|
pSchema[cols].bytes = htons(pShow->bytes[cols]);
|
||||||
cols++;
|
cols++;
|
||||||
|
|
||||||
pMeta->numOfColumns = htons(cols);
|
pMeta->numOfColumns = htonl(cols);
|
||||||
pShow->numOfColumns = cols;
|
pShow->numOfColumns = cols;
|
||||||
|
|
||||||
pShow->offset[0] = 0;
|
pShow->offset[0] = 0;
|
||||||
|
|
|
@ -419,7 +419,7 @@ static int32_t mndGetFuncMeta(SMnodeMsg *pMsg, SShowObj *pShow, STableMetaMsg *p
|
||||||
pSchema[cols].bytes = htons(pShow->bytes[cols]);
|
pSchema[cols].bytes = htons(pShow->bytes[cols]);
|
||||||
cols++;
|
cols++;
|
||||||
|
|
||||||
pMeta->numOfColumns = htons(cols);
|
pMeta->numOfColumns = htonl(cols);
|
||||||
pShow->numOfColumns = cols;
|
pShow->numOfColumns = cols;
|
||||||
|
|
||||||
pShow->offset[0] = 0;
|
pShow->offset[0] = 0;
|
||||||
|
|
|
@ -395,7 +395,7 @@ static int32_t mndGetMnodeMeta(SMnodeMsg *pMsg, SShowObj *pShow, STableMetaMsg *
|
||||||
pSchema[cols].bytes = htons(pShow->bytes[cols]);
|
pSchema[cols].bytes = htons(pShow->bytes[cols]);
|
||||||
cols++;
|
cols++;
|
||||||
|
|
||||||
pMeta->numOfColumns = htons(cols);
|
pMeta->numOfColumns = htonl(cols);
|
||||||
pShow->numOfColumns = cols;
|
pShow->numOfColumns = cols;
|
||||||
|
|
||||||
pShow->offset[0] = 0;
|
pShow->offset[0] = 0;
|
||||||
|
|
|
@ -515,7 +515,7 @@ static int32_t mndGetConnsMeta(SMnodeMsg *pMsg, SShowObj *pShow, STableMetaMsg *
|
||||||
pSchema[cols].bytes = htons(pShow->bytes[cols]);
|
pSchema[cols].bytes = htons(pShow->bytes[cols]);
|
||||||
cols++;
|
cols++;
|
||||||
|
|
||||||
pMeta->numOfColumns = htons(cols);
|
pMeta->numOfColumns = htonl(cols);
|
||||||
pShow->numOfColumns = cols;
|
pShow->numOfColumns = cols;
|
||||||
|
|
||||||
pShow->offset[0] = 0;
|
pShow->offset[0] = 0;
|
||||||
|
@ -683,7 +683,7 @@ static int32_t mndGetQueryMeta(SMnodeMsg *pMsg, SShowObj *pShow, STableMetaMsg *
|
||||||
pSchema[cols].bytes = htons(pShow->bytes[cols]);
|
pSchema[cols].bytes = htons(pShow->bytes[cols]);
|
||||||
cols++;
|
cols++;
|
||||||
|
|
||||||
pMeta->numOfColumns = htons(cols);
|
pMeta->numOfColumns = htonl(cols);
|
||||||
pShow->numOfColumns = cols;
|
pShow->numOfColumns = cols;
|
||||||
|
|
||||||
pShow->offset[0] = 0;
|
pShow->offset[0] = 0;
|
||||||
|
@ -875,7 +875,7 @@ static int32_t mndGetStreamMeta(SMnodeMsg *pMsg, SShowObj *pShow, STableMetaMsg
|
||||||
pSchema[cols].bytes = htons(pShow->bytes[cols]);
|
pSchema[cols].bytes = htons(pShow->bytes[cols]);
|
||||||
cols++;
|
cols++;
|
||||||
|
|
||||||
pMeta->numOfColumns = htons(cols);
|
pMeta->numOfColumns = htonl(cols);
|
||||||
pShow->numOfColumns = cols;
|
pShow->numOfColumns = cols;
|
||||||
|
|
||||||
pShow->offset[0] = 0;
|
pShow->offset[0] = 0;
|
||||||
|
|
|
@ -595,7 +595,7 @@ static int32_t mndGetStbMeta(SMnodeMsg *pMsg, SShowObj *pShow, STableMetaMsg *pM
|
||||||
pSchema[cols].bytes = htons(pShow->bytes[cols]);
|
pSchema[cols].bytes = htons(pShow->bytes[cols]);
|
||||||
cols++;
|
cols++;
|
||||||
|
|
||||||
pMeta->numOfColumns = htons(cols);
|
pMeta->numOfColumns = htonl(cols);
|
||||||
pShow->numOfColumns = cols;
|
pShow->numOfColumns = cols;
|
||||||
|
|
||||||
pShow->offset[0] = 0;
|
pShow->offset[0] = 0;
|
||||||
|
|
|
@ -323,7 +323,7 @@ static int32_t mndGetVgroupMeta(SMnodeMsg *pMsg, SShowObj *pShow, STableMetaMsg
|
||||||
cols++;
|
cols++;
|
||||||
}
|
}
|
||||||
|
|
||||||
pMeta->numOfColumns = htons(cols);
|
pMeta->numOfColumns = htonl(cols);
|
||||||
pShow->numOfColumns = cols;
|
pShow->numOfColumns = cols;
|
||||||
|
|
||||||
pShow->offset[0] = 0;
|
pShow->offset[0] = 0;
|
||||||
|
@ -411,7 +411,7 @@ static int32_t mndGetVnodeMeta(SMnodeMsg *pMsg, SShowObj *pShow, STableMetaMsg *
|
||||||
pSchema[cols].bytes = htons(pShow->bytes[cols]);
|
pSchema[cols].bytes = htons(pShow->bytes[cols]);
|
||||||
cols++;
|
cols++;
|
||||||
|
|
||||||
pMeta->numOfColumns = htons(cols);
|
pMeta->numOfColumns = htonl(cols);
|
||||||
pShow->numOfColumns = cols;
|
pShow->numOfColumns = cols;
|
||||||
|
|
||||||
pShow->offset[0] = 0;
|
pShow->offset[0] = 0;
|
||||||
|
|
Loading…
Reference in New Issue