summaryrefslogtreecommitdiff
path: root/test/test-util.hpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2025-09-08 20:37:29 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2025-09-08 23:27:41 +0100
commitd9bc09d8c9e46c5bfe15097eca4f10153b08de13 (patch)
treec3352cc794ed86f8a5f776cb6da1f25d327117b9 /test/test-util.hpp
parentdae750d7dfa576b516ff55d6d486114b665103dc (diff)
downloadwebstat-d9bc09d8c9e46c5bfe15097eca4f10153b08de13.tar.bz2
webstat-d9bc09d8c9e46c5bfe15097eca4f10153b08de13.tar.xz
webstat-d9bc09d8c9e46c5bfe15097eca4f10153b08de13.zip
Move fixture log file generator to test util
Diffstat (limited to 'test/test-util.hpp')
-rw-r--r--test/test-util.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test-util.hpp b/test/test-util.hpp
index b0ae0dd..c17418f 100644
--- a/test/test-util.hpp
+++ b/test/test-util.hpp
@@ -33,4 +33,12 @@ namespace WebStat {
template<typename Out> using ParseData = std::tuple<std::string_view, Out>;
utsname getTestUtsName(std::string_view);
+
+ struct LogFile {
+ LogFile(std::filesystem::path where, size_t entries);
+ ~LogFile();
+ SPECIAL_MEMBERS_DELETE(LogFile);
+
+ const std::filesystem::path path;
+ };
}