milvus/cpp/unittest/log/log_test.cpp
groot 41220cb25d add db unittest
Former-commit-id: 5a9e4a10ada30d19fee14b1d2e1d4123ac6dee04
2019-04-21 17:01:02 +08:00

20 lines
800 B
C++

////////////////////////////////////////////////////////////////////////////////
// Copyright 上海赜睿信息科技有限公司(Zilliz) - All Rights Reserved
// Unauthorized copying of this file, via any medium is strictly prohibited.
// Proprietary and confidential.
////////////////////////////////////////////////////////////////////////////////
#include <gtest/gtest.h>
#include "easylogging++.h"
class LogTest: public testing::Test {
protected:
void SetUp() override {
el::Configurations conf("../../../conf/vecwise_engine_log.conf");
el::Loggers::reconfigureAllLoggers(conf);
}
};
TEST_F(LogTest, TEST) {
EXPECT_FALSE(el::Loggers::hasFlag(el::LoggingFlag::NewLineForContainer));
EXPECT_FALSE(el::Loggers::hasFlag(el::LoggingFlag::LogDetailedCrashReason));
}