indexTests.cpp 311 字节
Newer Older
dengyihao's avatar
dengyihao 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#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); 
}