memgraph/tests/unit/storage_test_utils.cpp

9 lines
291 B
C++
Raw Normal View History

2021-09-09 22:10:19 +08:00
#include "storage_test_utils.hpp"
size_t CountVertices(storage::Storage::Accessor &storage_accessor, storage::View view) {
auto vertices = storage_accessor.Vertices(view);
size_t count = 0U;
for (auto it = vertices.begin(); it != vertices.end(); ++it, ++count)
;
return count;
}