diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-08-22 13:09:25 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-08-22 13:09:25 +0100 |
commit | de50cd15f12216760bb746ec8936fc1501113425 (patch) | |
tree | 5046e4d35693de2e83b12881bc7cd7cf1a05e2d0 /test/helpers.cpp | |
parent | Enable numeric conversion warning and fix the fallout (diff) | |
download | mygrate-de50cd15f12216760bb746ec8936fc1501113425.tar.bz2 mygrate-de50cd15f12216760bb746ec8936fc1501113425.tar.xz mygrate-de50cd15f12216760bb746ec8936fc1501113425.zip |
Add EventCounter class
Diffstat (limited to 'test/helpers.cpp')
-rw-r--r-- | test/helpers.cpp | 7 |
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; +} |