From 059629cd8a7b370a782fbf75e13ade4ecb6ca0ff Mon Sep 17 00:00:00 2001 From: Sebastian Messmer Date: Sat, 13 Dec 2014 17:49:54 +0100 Subject: [PATCH] Rename test cases --- .../{impl => datanodestore}/DataLeafNodeTest.cpp | 0 .../DataNodeStoreTest.cpp} | 14 +++++++------- .../{impl => datanodestore}/DataNodeViewTest.cpp | 0 3 files changed, 7 insertions(+), 7 deletions(-) rename src/test/blobstore/implementations/onblocks/{impl => datanodestore}/DataLeafNodeTest.cpp (100%) rename src/test/blobstore/implementations/onblocks/{impl/DataNodeTest.cpp => datanodestore/DataNodeStoreTest.cpp} (83%) rename src/test/blobstore/implementations/onblocks/{impl => datanodestore}/DataNodeViewTest.cpp (100%) diff --git a/src/test/blobstore/implementations/onblocks/impl/DataLeafNodeTest.cpp b/src/test/blobstore/implementations/onblocks/datanodestore/DataLeafNodeTest.cpp similarity index 100% rename from src/test/blobstore/implementations/onblocks/impl/DataLeafNodeTest.cpp rename to src/test/blobstore/implementations/onblocks/datanodestore/DataLeafNodeTest.cpp diff --git a/src/test/blobstore/implementations/onblocks/impl/DataNodeTest.cpp b/src/test/blobstore/implementations/onblocks/datanodestore/DataNodeStoreTest.cpp similarity index 83% rename from src/test/blobstore/implementations/onblocks/impl/DataNodeTest.cpp rename to src/test/blobstore/implementations/onblocks/datanodestore/DataNodeStoreTest.cpp index 10f3c0da..b9eb3a31 100644 --- a/src/test/blobstore/implementations/onblocks/impl/DataNodeTest.cpp +++ b/src/test/blobstore/implementations/onblocks/datanodestore/DataNodeStoreTest.cpp @@ -18,7 +18,7 @@ using blockstore::testfake::FakeBlockStore; using namespace blobstore; using namespace blobstore::onblocks; -class DataNodeTest: public Test { +class DataNodeStoreTest: public Test { public: unique_ptr _blockStore = make_unique(); BlockStore *blockStore = _blockStore.get(); @@ -27,19 +27,19 @@ public: #define EXPECT_IS_PTR_TYPE(Type, ptr) EXPECT_NE(nullptr, dynamic_cast(ptr)) << "Given pointer cannot be cast to the given type" -TEST_F(DataNodeTest, CreateLeafNodeCreatesLeafNode) { +TEST_F(DataNodeStoreTest, CreateLeafNodeCreatesLeafNode) { auto node = nodeStore->createNewLeafNode(); EXPECT_IS_PTR_TYPE(DataLeafNode, node.get()); } -TEST_F(DataNodeTest, CreateInnerNodeCreatesInnerNode) { +TEST_F(DataNodeStoreTest, CreateInnerNodeCreatesInnerNode) { auto leaf = nodeStore->createNewLeafNode(); auto node = nodeStore->createNewInnerNode(*leaf); EXPECT_IS_PTR_TYPE(DataInnerNode, node.get()); } -TEST_F(DataNodeTest, LeafNodeIsRecognizedAfterStoreAndLoad) { +TEST_F(DataNodeStoreTest, LeafNodeIsRecognizedAfterStoreAndLoad) { Key key = nodeStore->createNewLeafNode()->key(); auto loaded_node = nodeStore->load(key); @@ -47,7 +47,7 @@ TEST_F(DataNodeTest, LeafNodeIsRecognizedAfterStoreAndLoad) { EXPECT_IS_PTR_TYPE(DataLeafNode, loaded_node.get()); } -TEST_F(DataNodeTest, InnerNodeWithDepth1IsRecognizedAfterStoreAndLoad) { +TEST_F(DataNodeStoreTest, InnerNodeWithDepth1IsRecognizedAfterStoreAndLoad) { auto leaf = nodeStore->createNewLeafNode(); Key key = nodeStore->createNewInnerNode(*leaf)->key(); @@ -56,7 +56,7 @@ TEST_F(DataNodeTest, InnerNodeWithDepth1IsRecognizedAfterStoreAndLoad) { EXPECT_IS_PTR_TYPE(DataInnerNode, loaded_node.get()); } -TEST_F(DataNodeTest, InnerNodeWithDepth2IsRecognizedAfterStoreAndLoad) { +TEST_F(DataNodeStoreTest, InnerNodeWithDepth2IsRecognizedAfterStoreAndLoad) { auto leaf = nodeStore->createNewLeafNode(); auto inner = nodeStore->createNewInnerNode(*leaf); Key key = nodeStore->createNewInnerNode(*inner)->key(); @@ -66,7 +66,7 @@ TEST_F(DataNodeTest, InnerNodeWithDepth2IsRecognizedAfterStoreAndLoad) { EXPECT_IS_PTR_TYPE(DataInnerNode, loaded_node.get()); } -TEST_F(DataNodeTest, DataNodeCrashesOnLoadIfDepthIsTooHigh) { +TEST_F(DataNodeStoreTest, DataNodeCrashesOnLoadIfDepthIsTooHigh) { auto block = blockStore->create(BlobStoreOnBlocks::BLOCKSIZE); Key key = block.key; { diff --git a/src/test/blobstore/implementations/onblocks/impl/DataNodeViewTest.cpp b/src/test/blobstore/implementations/onblocks/datanodestore/DataNodeViewTest.cpp similarity index 100% rename from src/test/blobstore/implementations/onblocks/impl/DataNodeViewTest.cpp rename to src/test/blobstore/implementations/onblocks/datanodestore/DataNodeViewTest.cpp