summaryrefslogtreecommitdiff
path: root/test/test-util.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2025-08-25 15:18:41 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2025-08-25 16:02:51 +0100
commit3d6c2f43932bf8930ea0b1a53f6ebe048c7803bc (patch)
tree11916da8f6dcd75c461a7c5cca075ca0fdeaf8d6 /test/test-util.cpp
parent6e549d226b0ebce6ecdce0e7c5f03a0ce4867a89 (diff)
downloadwebstat-3d6c2f43932bf8930ea0b1a53f6ebe048c7803bc.tar.bz2
webstat-3d6c2f43932bf8930ea0b1a53f6ebe048c7803bc.tar.xz
webstat-3d6c2f43932bf8930ea0b1a53f6ebe048c7803bc.zip
Move common test code to its own library
Diffstat (limited to 'test/test-util.cpp')
-rw-r--r--test/test-util.cpp6
1 files changed, 6 insertions, 0 deletions
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<PQ::Mock>("webstat", {SRC_DIR / "schema.sql"}, "user=postgres dbname=postgres") { }
+}