未验证 提交 a3935eed 编写于 作者: G groot 提交者: GitHub

unitest validation (#1788)

Signed-off-by: Ngroot <yihua.mo@zilliz.com>
上级 4cd5d8dd
......@@ -514,6 +514,7 @@ TEST_F(RpcHandlerTest, COMBINE_SEARCH_TEST) {
int64_t index = 0;
for (auto& result_ptr : result_array) {
ASSERT_NE(result_ptr->ids_size(), 0);
ASSERT_NE(result_ptr->row_num(), 0);
std::string msg = "Result no." + std::to_string(index) + ": \n";
for (int64_t i = 0; i < NQ; i++) {
for (int64_t k = 0; k < TOPK; k++) {
......@@ -615,6 +616,7 @@ TEST_F(RpcHandlerTest, COMBINE_SEARCH_BINARY_TEST) {
int64_t index = 0;
for (auto& result_ptr : result_array) {
ASSERT_NE(result_ptr->ids_size(), 0);
ASSERT_NE(result_ptr->row_num(), 0);
std::string msg = "Result no." + std::to_string(++index) + ": \n";
for (int64_t i = 0; i < NQ; i++) {
for (int64_t k = 0; k < TOPK; k++) {
......
......@@ -58,6 +58,8 @@ InsertEntities(std::shared_ptr<milvus::Connection>& conn) {
milvus::Status stat = conn->Insert(COLLECTION_NAME, "", entity_array, record_ids);
std::cout << "InsertEntities function call status: " << stat.message() << std::endl;
std::cout << "Returned id array count: " << record_ids.size() << std::endl;
stat = conn->FlushCollection(COLLECTION_NAME);
}
return true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册