From b33c58807afa66e1d779224ea760963ea9e47b64 Mon Sep 17 00:00:00 2001 From: "cai.zhang" Date: Fri, 7 Nov 2025 10:05:35 +0800 Subject: [PATCH] enhance: [2.6] [test] Move R-Tree index tests into the implementation package (#45356) master pr: #45355 Signed-off-by: Cai Zhang --- .../test_rtree_index.cpp => src/index/RTreeIndexTest.cpp} | 6 +++--- .../index/RTreeIndexWrapperTest.cpp} | 2 +- internal/core/unittest/CMakeLists.txt | 2 -- 3 files changed, 4 insertions(+), 6 deletions(-) rename internal/core/{unittest/test_rtree_index.cpp => src/index/RTreeIndexTest.cpp} (99%) rename internal/core/{unittest/test_rtree_index_wrapper.cpp => src/index/RTreeIndexWrapperTest.cpp} (99%) diff --git a/internal/core/unittest/test_rtree_index.cpp b/internal/core/src/index/RTreeIndexTest.cpp similarity index 99% rename from internal/core/unittest/test_rtree_index.cpp rename to internal/core/src/index/RTreeIndexTest.cpp index a3ded7f265..3c63415813 100644 --- a/internal/core/unittest/test_rtree_index.cpp +++ b/internal/core/src/index/RTreeIndexTest.cpp @@ -15,7 +15,7 @@ #include #include -#include "index/RTreeIndex.h" +#include "RTreeIndex.h" #include "storage/Util.h" #include "storage/FileManager.h" #include "common/Types.h" @@ -24,7 +24,7 @@ #include "pb/plan.pb.h" #include "common/Geometry.h" #include "common/EasyAssert.h" -#include "index/IndexFactory.h" +#include "IndexFactory.h" #include "storage/InsertData.h" #include "storage/PayloadReader.h" #include "storage/DiskFileManagerImpl.h" @@ -32,7 +32,7 @@ #include "query/ExecPlanNodeVisitor.h" #include "common/Consts.h" #include "test_utils/storage_test_utils.h" -#include "index/Utils.h" +#include "Utils.h" #include "storage/ThreadPools.h" #include "test_utils/cachinglayer_test_utils.h" diff --git a/internal/core/unittest/test_rtree_index_wrapper.cpp b/internal/core/src/index/RTreeIndexWrapperTest.cpp similarity index 99% rename from internal/core/unittest/test_rtree_index_wrapper.cpp rename to internal/core/src/index/RTreeIndexWrapperTest.cpp index ba4eef2a5b..5b09fc0688 100644 --- a/internal/core/unittest/test_rtree_index_wrapper.cpp +++ b/internal/core/src/index/RTreeIndexWrapperTest.cpp @@ -12,7 +12,7 @@ #include #include #include -#include "index/RTreeIndexWrapper.h" +#include "RTreeIndexWrapper.h" #include "common/Geometry.h" class RTreeIndexWrapperTest : public ::testing::Test { diff --git a/internal/core/unittest/CMakeLists.txt b/internal/core/unittest/CMakeLists.txt index 2e7a2bf3b4..abec32b089 100644 --- a/internal/core/unittest/CMakeLists.txt +++ b/internal/core/unittest/CMakeLists.txt @@ -49,8 +49,6 @@ set(MILVUS_TEST_FILES test_rust_result.cpp test_storage_v2_index_raw_data.cpp test_group_by_json.cpp - test_rtree_index_wrapper.cpp - test_rtree_index.cpp ) if ( NOT (INDEX_ENGINE STREQUAL "cardinal") )