mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-01 03:18:29 +08:00
Code clean for test_timestamp_index (#10148)
Signed-off-by: yudong.cai <yudong.cai@zilliz.com>
This commit is contained in:
parent
5737e0075f
commit
eda9d550a8
@ -10,13 +10,13 @@
|
|||||||
// or implied. See the License for the specific language governing permissions and limitations under the License
|
// or implied. See the License for the specific language governing permissions and limitations under the License
|
||||||
|
|
||||||
#include <gtest/gtest.h>
|
#include <gtest/gtest.h>
|
||||||
#include "utils/tools.h"
|
|
||||||
#include "test_utils/DataGen.h"
|
|
||||||
#include "segcore/TimestampIndex.h"
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
#include "segcore/TimestampIndex.h"
|
||||||
|
|
||||||
using namespace milvus;
|
using namespace milvus;
|
||||||
using namespace milvus::segcore;
|
using namespace milvus::segcore;
|
||||||
|
|
||||||
TEST(TimestampIndex, Naive) {
|
TEST(TimestampIndex, Naive) {
|
||||||
SUCCEED();
|
SUCCEED();
|
||||||
std::vector<Timestamp> timestamps{
|
std::vector<Timestamp> timestamps{
|
||||||
@ -26,7 +26,6 @@ TEST(TimestampIndex, Naive) {
|
|||||||
TimestampIndex index;
|
TimestampIndex index;
|
||||||
index.set_length_meta(lengths);
|
index.set_length_meta(lengths);
|
||||||
index.build_with(timestamps.data(), timestamps.size());
|
index.build_with(timestamps.data(), timestamps.size());
|
||||||
int x = 1 + 1;
|
|
||||||
|
|
||||||
auto guessed_slice = GenerateFakeSlices(timestamps.data(), timestamps.size(), 2);
|
auto guessed_slice = GenerateFakeSlices(timestamps.data(), timestamps.size(), 2);
|
||||||
ASSERT_EQ(guessed_slice.size(), lengths.size());
|
ASSERT_EQ(guessed_slice.size(), lengths.size());
|
||||||
|
Loading…
Reference in New Issue
Block a user