Skip to content

Commit

Permalink
Use temp databases in HexastoreTest to avoid IO (#628)
Browse files Browse the repository at this point in the history
Co-authored-by: Fabian Schiebel <[email protected]>
  • Loading branch information
MMory and fabianbs96 authored Jun 15, 2023
1 parent 263ef58 commit 57dd51a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions unittests/DB/HexastoreTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ using namespace psr;
using namespace std;

TEST(HexastoreTest, QueryBlankFieldEntries) {
Hexastore H("QueryBlankFieldEntries.sqlite");
Hexastore H("");
H.put({{"one", "", ""}});
H.put({{"two", "", ""}});
H.put({{"", "three", ""}});
Expand All @@ -32,7 +32,7 @@ TEST(HexastoreTest, QueryBlankFieldEntries) {
}

TEST(HexastoreTest, AllQueryTypes) {
Hexastore H("AllQueryTypes.sqlite");
Hexastore H("");
H.put({{"mary", "likes", "hexastores"}});
H.put({{"mary", "likes", "apples"}});
H.put({{"mary", "hates", "oranges"}});
Expand Down Expand Up @@ -143,7 +143,7 @@ TEST(HexastoreTest, StoreGraphNoEdgeLabels) {
// llvm::outs() << "Graph G:" << std::endl;
// boost::print_graph(G, boost::get(&Vertex::name, G));

Hexastore HS("StoreGraphNoEdgeLabels.sqlite");
Hexastore HS("");

// serialize graph G
for (tie(EiStart, EEnd) = boost::edges(G); EiStart != EEnd; ++EiStart) {
Expand Down Expand Up @@ -230,7 +230,7 @@ TEST(HexastoreTest, StoreGraphWithEdgeLabels) {
// cout << boost::get(&Edge::edge_name, I, *ei_start) << endl;
// }

Hexastore HS("StoreGraphWithEdgeLabels.sqlite");
Hexastore HS("");

// serialize graph I
for (tie(EiStart, EEnd) = boost::edges(I); EiStart != EEnd; ++EiStart) {
Expand Down

0 comments on commit 57dd51a

Please sign in to comment.