New upstream version 8.1.0

This commit is contained in:
geos_one
2025-08-10 01:34:16 +02:00
commit c891bb7105
4398 changed files with 838833 additions and 0 deletions

23
common/tests/TestPath.cpp Normal file
View File

@@ -0,0 +1,23 @@
#include <common/storage/Path.h>
#include <gtest/gtest.h>
TEST(Path, path)
{
std::vector<std::string> origPathElems = {
"xyz",
"subdir",
"file",
};
std::string pathStr;
for (auto iter = origPathElems.begin(); iter != origPathElems.end(); iter++)
pathStr += "/" + *iter;
Path path(pathStr);
ASSERT_EQ(path.size(), origPathElems.size());
for (size_t i = 0; i < path.size(); i++)
ASSERT_EQ(path[i], origPathElems[i]);
}