MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / TEST_F

Function TEST_F

test/api/storage_driver_test.cpp:36–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34// }
35
36TEST_F(StorageDriverTest, GetNumNodes) {
37 auto storageDriver = std::make_unique<StorageDriver>(database.get());
38
39 auto numNodes = storageDriver->getNumNodes("person");
40 auto numNodesQuery = conn->query("MATCH (n:person) RETURN COUNT(n)");
41 ASSERT_TRUE(numNodesQuery->isSuccess());
42 ASSERT_EQ(numNodes, numNodesQuery->getNext()->getValue(0)->getValue<int64_t>());
43}
44
45TEST_F(StorageDriverTest, GetNumNodesNonNodeTable) {
46 auto storageDriver = std::make_unique<StorageDriver>(database.get());

Callers

nothing calls this directly

Calls 7

getMethod · 0.45
getNumNodesMethod · 0.45
queryMethod · 0.45
isSuccessMethod · 0.45
getValueMethod · 0.45
getNextMethod · 0.45
getNumRelsMethod · 0.45

Tested by

no test coverage detected