From 3d6c2f43932bf8930ea0b1a53f6ebe048c7803bc Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 25 Aug 2025 15:18:41 +0100 Subject: Move common test code to its own library --- test/test-util.cpp | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/test-util.cpp (limited to 'test/test-util.cpp') diff --git a/test/test-util.cpp b/test/test-util.cpp new file mode 100644 index 0000000..feb58c7 --- /dev/null +++ b/test/test-util.cpp @@ -0,0 +1,6 @@ +#include "test-util.hpp" + +namespace WebStat { + MockDB::MockDB() : + DB::PluginMock("webstat", {SRC_DIR / "schema.sql"}, "user=postgres dbname=postgres") { } +} -- cgit v1.2.3