summaryrefslogtreecommitdiff
path: root/test/helpers.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-08-22 13:09:25 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-08-22 13:09:25 +0100
commitde50cd15f12216760bb746ec8936fc1501113425 (patch)
tree5046e4d35693de2e83b12881bc7cd7cf1a05e2d0 /test/helpers.cpp
parentEnable numeric conversion warning and fix the fallout (diff)
downloadmygrate-de50cd15f12216760bb746ec8936fc1501113425.tar.bz2
mygrate-de50cd15f12216760bb746ec8936fc1501113425.tar.xz
mygrate-de50cd15f12216760bb746ec8936fc1501113425.zip
Add EventCounter class
Diffstat (limited to 'test/helpers.cpp')
-rw-r--r--test/helpers.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/helpers.cpp b/test/helpers.cpp
index f4fc030..6cb6fdc 100644
--- a/test/helpers.cpp
+++ b/test/helpers.cpp
@@ -13,3 +13,10 @@ MemStream::flush()
{
fflush(s);
}
+
+EventCounterTarget &
+EventCounterTarget::add(mariadb_rpl_event e, unsigned long n)
+{
+ counters[e] += n;
+ return *this;
+}