From 18ee30f69e1dd3b4ed896ba1d9372b61230fe89b Mon Sep 17 00:00:00 2001 From: Marko Budiselic Date: Sun, 5 Jun 2016 09:48:34 +0200 Subject: [PATCH] db_index test -> the index creation is tested for now --- .gitignore | 1 + src/storage/indexes/index.hpp | 1 - src/storage/indexes/index_key.hpp | 2 +- tests/db_index.cpp | 16 ++++++++++++++++ 4 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 tests/db_index.cpp diff --git a/.gitignore b/.gitignore index a95175283..f81f13db7 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ memgraph *.breakpoint *.session.yaml tags +.gdb_history diff --git a/src/storage/indexes/index.hpp b/src/storage/indexes/index.hpp index 27f80f0f1..fbc6229f1 100644 --- a/src/storage/indexes/index.hpp +++ b/src/storage/indexes/index.hpp @@ -24,7 +24,6 @@ public: // todo handle existing insert } - private: skiplist_t skiplist; }; diff --git a/src/storage/indexes/index_key.hpp b/src/storage/indexes/index_key.hpp index 6bb7689ec..68beba984 100644 --- a/src/storage/indexes/index_key.hpp +++ b/src/storage/indexes/index_key.hpp @@ -16,7 +16,7 @@ private: Property& key; }; -template +template class IndexKey { public: diff --git a/tests/db_index.cpp b/tests/db_index.cpp new file mode 100644 index 000000000..60680c353 --- /dev/null +++ b/tests/db_index.cpp @@ -0,0 +1,16 @@ +#include + +#include "storage/indexes/index.hpp" + +using std::cout; +using std::endl; + +using StringUniqueKeyAsc = UniqueKeyAsc; + +int main(void) +{ + // index creation + auto index = std::make_shared>(); + + return 0; +}