Skip to content

Commit

Permalink
fix: unittest
Browse files Browse the repository at this point in the history
Signed-off-by: chyezh <[email protected]>
  • Loading branch information
chyezh committed Jan 5, 2025
1 parent 27d5080 commit 1831a35
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion internal/core/unittest/test_array_bitmap_index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,6 @@ class ArrayBitmapIndexTest : public testing::Test {
auto serializedSize = create_index_result->GetSerializedSize();
ASSERT_GT(memSize, 0);
ASSERT_GT(serializedSize, 0);
ASSERT_GT(memSize, serializedSize);
index_files = create_index_result->GetIndexFiles();
}

Expand Down
1 change: 0 additions & 1 deletion internal/core/unittest/test_bitmap_index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ class BitmapIndexTest : public testing::Test {
auto serializedSize = create_index_result->GetSerializedSize();
ASSERT_GT(memSize, 0);
ASSERT_GT(serializedSize, 0);
ASSERT_GT(memSize, serializedSize);
auto index_files = create_index_result->GetIndexFiles();

index::CreateIndexInfo index_info{};
Expand Down
1 change: 0 additions & 1 deletion internal/core/unittest/test_hybrid_index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ class HybridIndexTestV1 : public testing::Test {
auto serializedSize = create_index_result->GetSerializedSize();
ASSERT_GT(memSize, 0);
ASSERT_GT(serializedSize, 0);
ASSERT_GT(memSize, serializedSize);
index_files = create_index_result->GetIndexFiles();
}

Expand Down
7 changes: 0 additions & 7 deletions internal/core/unittest/test_indexing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,6 @@ TEST_P(IndexTest, BuildAndQuery) {
auto serializedSize = create_index_result->GetSerializedSize();
ASSERT_GT(memSize, 0);
ASSERT_GT(serializedSize, 0);
ASSERT_GT(memSize, serializedSize);
load_conf = generate_load_conf(index_type, metric_type, 0);
load_conf["index_files"] = index_files;
ASSERT_NO_THROW(vec_index->Load(milvus::tracer::TraceContext{}, load_conf));
Expand Down Expand Up @@ -568,7 +567,6 @@ TEST_P(IndexTest, Mmap) {
auto serializedSize = create_index_result->GetSerializedSize();
ASSERT_GT(memSize, 0);
ASSERT_GT(serializedSize, 0);
ASSERT_GT(memSize, serializedSize);
load_conf = generate_load_conf(index_type, metric_type, 0);
load_conf["index_files"] = index_files;
load_conf["mmap_filepath"] = "mmap/test_index_mmap_" + index_type;
Expand Down Expand Up @@ -621,7 +619,6 @@ TEST_P(IndexTest, GetVector) {
auto serializedSize = create_index_result->GetSerializedSize();
ASSERT_GT(memSize, 0);
ASSERT_GT(serializedSize, 0);
ASSERT_GT(memSize, serializedSize);
new_index = milvus::index::IndexFactory::GetInstance().CreateIndex(
create_index_info, file_manager_context);
load_conf = generate_load_conf(index_type, metric_type, 0);
Expand Down Expand Up @@ -724,7 +721,6 @@ TEST_P(IndexTest, GetVector_EmptySparseVector) {
auto serializedSize = create_index_result->GetSerializedSize();
ASSERT_GT(memSize, 0);
ASSERT_GT(serializedSize, 0);
ASSERT_GT(memSize, serializedSize);
new_index = milvus::index::IndexFactory::GetInstance().CreateIndex(
create_index_info, file_manager_context);
load_conf = generate_load_conf(index_type, metric_type, 0);
Expand Down Expand Up @@ -801,7 +797,6 @@ TEST(Indexing, SearchDiskAnnWithInvalidParam) {
auto serializedSize = create_index_result->GetSerializedSize();
ASSERT_GT(memSize, 0);
ASSERT_GT(serializedSize, 0);
ASSERT_GT(memSize, serializedSize);
auto index_files = create_index_result->GetIndexFiles();
index.reset();

Expand Down Expand Up @@ -886,7 +881,6 @@ TEST(Indexing, SearchDiskAnnWithFloat16) {
auto serializedSize = create_index_result->GetSerializedSize();
ASSERT_GT(memSize, 0);
ASSERT_GT(serializedSize, 0);
ASSERT_GT(memSize, serializedSize);
auto index_files = create_index_result->GetIndexFiles();
index.reset();

Expand Down Expand Up @@ -970,7 +964,6 @@ TEST(Indexing, SearchDiskAnnWithBFloat16) {
auto serializedSize = create_index_result->GetSerializedSize();
ASSERT_GT(memSize, 0);
ASSERT_GT(serializedSize, 0);
ASSERT_GT(memSize, serializedSize);
auto index_files = create_index_result->GetIndexFiles();
index.reset();

Expand Down
2 changes: 0 additions & 2 deletions internal/core/unittest/test_inverted_index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ test_run() {
auto serializedSize = create_index_result->GetSerializedSize();
ASSERT_GT(memSize, 0);
ASSERT_GT(serializedSize, 0);
ASSERT_GT(memSize, serializedSize);
index_files = create_index_result->GetIndexFiles();
}

Expand Down Expand Up @@ -474,7 +473,6 @@ test_string() {
auto serializedSize = create_index_result->GetSerializedSize();
ASSERT_GT(memSize, 0);
ASSERT_GT(serializedSize, 0);
ASSERT_GT(memSize, serializedSize);
index_files = create_index_result->GetIndexFiles();
}

Expand Down

0 comments on commit 1831a35

Please sign in to comment.