homework-jianmu/source/libs/index/test/indexTests.cpp

16 lines
311 B
C++

#include <gtest/gtest.h>
#include <string>
#include <iostream>
#include "index.h"
TEST(IndexTest, index_create_test) {
SIndexOpts *opts = indexOptsCreate();
SIndex *index = indexOpen(opts, "./");
if (index == NULL) {
std::cout << "index open failed" << std::endl;
}
indexOptsDestroy(opts);
}