Commit 34dfa951 authored by groot's avatar groot
Browse files

refine code


Former-commit-id: 28e14b7aed539a4651b5f9ba8726da3ae6e8afaf
parents 79221be2 46bc0522
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ struct BufferDeleter {
        free((void*)buffer->data());
    }
};
}
}  // namespace internal

inline BufferPtr
MakeBufferSmart(uint8_t* data, const int64_t size) {
+1 −1
Original line number Diff line number Diff line
@@ -43,9 +43,9 @@ namespace kn = knowhere;

}  // namespace

using ::testing::Combine;
using ::testing::TestWithParam;
using ::testing::Values;
using ::testing::Combine;

constexpr int device_id = 0;
constexpr int64_t DIM = 128;
+1 −1
Original line number Diff line number Diff line
@@ -34,9 +34,9 @@ namespace kn = knowhere;

}  // namespace

using ::testing::Combine;
using ::testing::TestWithParam;
using ::testing::Values;
using ::testing::Combine;

class KDTTest : public DataGen, public ::testing::Test {
 protected:
+1 −1
Original line number Diff line number Diff line
@@ -32,9 +32,9 @@ namespace kn = knowhere;

}  // namespace

using ::testing::Combine;
using ::testing::TestWithParam;
using ::testing::Values;
using ::testing::Combine;

constexpr int64_t DEVICE_ID = 1;

+1 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ static int warning_idx = 0;
static int trace_idx = 0;
static int error_idx = 0;
static int fatal_idx = 0;
}
}  // namespace

// TODO(yzb) : change the easylogging library to get the log level from parameter rather than filename
void
+5 −5

File changed.

Contains only whitespace changes.

+19 −19

File changed.

Contains only whitespace changes.

Loading