test: Move prettyPath to its own file and test it (#2486)

This commit is contained in:
Ayaz Salikhov
2025-08-28 18:33:03 +01:00
committed by GitHub
parent e6b2f9cde7
commit 0403248a8f
9 changed files with 156 additions and 22 deletions

View File

@@ -28,7 +28,6 @@
#include <memory>
#include <sstream>
#include <string>
#include <string_view>
#include <vector>
// We forward declare spdlog::logger and spdlog::sinks::sink
@@ -136,10 +135,6 @@ class Logger final {
{
return enabled_;
}
private:
[[nodiscard]] static std::string_view
prettyPath(SourceLocationType const& loc, size_t maxDepth = 3);
};
public: