From c7bb4eace67d86b4dab70b40a7315c83e8612aac Mon Sep 17 00:00:00 2001 From: yihaoDeng Date: Wed, 29 Dec 2021 09:51:06 +0800 Subject: [PATCH] refactor code --- source/libs/index/test/indexTests.cc | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/source/libs/index/test/indexTests.cc b/source/libs/index/test/indexTests.cc index b3e385192f..110499f67a 100644 --- a/source/libs/index/test/indexTests.cc +++ b/source/libs/index/test/indexTests.cc @@ -725,23 +725,40 @@ TEST_F(IndexEnv2, testIndexOpen) { assert(taosArrayGetSize(result) == targetSize); } } -TEST_F(IndexEnv2, testIndex_CachePut) { + +TEST_F(IndexEnv2, testIndex_TrigeFlush) { std::string path = "/tmp"; if (index->Init(path) != 0) { } } - -TEST_F(IndexEnv2, testIndexr_TFilePut) { +TEST_F(IndexEnv2, testIndex_TrigeFlush) { + std::string path = "/tmp"; + if (index->Init(path) != 0) { + } +} +TEST_(IndexEnv2, testIndex_serarch_cache_and_tfile) { + std::string path = "/tmp"; + if (index->Init(path) != 0) { + } +} +TEST_(IndexEnv2, testIndex_multi_thread_write) { + std::string path = "/tmp"; + if (index->Init(path) != 0) { + } +} +TEST_(IndexEnv2, testIndex_multi_thread_read) { std::string path = "/tmp"; if (index->Init(path) != 0) { } } -TEST_F(IndexEnv2, testIndex_CacheSearch) { + +TEST_(IndexEnv2, testIndex_restart) { std::string path = "/tmp"; if (index->Init(path) != 0) { } } -TEST_F(IndexEnv2, testIndex_TFileSearch) { + +TEST_F(IndexEnv2, testIndex_performance) { std::string path = "/tmp"; if (index->Init(path) != 0) { } -- GitLab