refactor code

This commit is contained in:
yihaoDeng 2021-12-29 09:51:06 +08:00
parent 971efd7ef4
commit c7bb4eace6
1 changed files with 25 additions and 8 deletions

View File

@ -725,23 +725,40 @@ TEST_F(IndexEnv2, testIndexOpen) {
assert(taosArrayGetSize(result) == targetSize); 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, 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"; std::string path = "/tmp";
if (index->Init(path) != 0) { if (index->Init(path) != 0) {
} }
} }
TEST_F(IndexEnv2, testIndexr_TFilePut) { TEST_(IndexEnv2, testIndex_restart) {
std::string path = "/tmp"; std::string path = "/tmp";
if (index->Init(path) != 0) { if (index->Init(path) != 0) {
} }
} }
TEST_F(IndexEnv2, testIndex_CacheSearch) {
std::string path = "/tmp"; TEST_F(IndexEnv2, testIndex_performance) {
if (index->Init(path) != 0) {
}
}
TEST_F(IndexEnv2, testIndex_TFileSearch) {
std::string path = "/tmp"; std::string path = "/tmp";
if (index->Init(path) != 0) { if (index->Init(path) != 0) {
} }