summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-08-30 13:57:52 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-08-30 13:57:52 +0100
commit3c22041ee8dd450ce446620eb559a07e34f44343 (patch)
tree91479064d44f98464334b7ebc576e82d18fcb86d /test
parentAdd -Wold-style-cast (diff)
downloadmygrate-3c22041ee8dd450ce446620eb559a07e34f44343.tar.bz2
mygrate-3c22041ee8dd450ce446620eb559a07e34f44343.tar.xz
mygrate-3c22041ee8dd450ce446620eb559a07e34f44343.zip
Add -Wpedantic
Diffstat (limited to 'test')
-rw-r--r--test/test-bitset.cpp2
-rw-r--r--test/test-counters.cpp4
-rw-r--r--test/test-e2e.cpp34
-rw-r--r--test/test-postgresql.cpp4
-rw-r--r--test/test-streams.cpp4
5 files changed, 24 insertions, 24 deletions
diff --git a/test/test-bitset.cpp b/test/test-bitset.cpp
index 02b3893..c750b48 100644
--- a/test/test-bitset.cpp
+++ b/test/test-bitset.cpp
@@ -11,7 +11,7 @@
using namespace MyGrate;
// LCOV_EXCL_START
-BOOST_TEST_DONT_PRINT_LOG_VALUE(BitSet::Iterator);
+BOOST_TEST_DONT_PRINT_LOG_VALUE(BitSet::Iterator)
// LCOV_EXCL_STOP
BOOST_AUTO_TEST_CASE(bitset)
diff --git a/test/test-counters.cpp b/test/test-counters.cpp
index 1bc30dc..3f9740f 100644
--- a/test/test-counters.cpp
+++ b/test/test-counters.cpp
@@ -3,7 +3,7 @@
#include "helpers.h"
-BOOST_FIXTURE_TEST_SUITE(ec, EventCounterTarget);
+BOOST_FIXTURE_TEST_SUITE(ec, EventCounterTarget)
BOOST_AUTO_TEST_CASE(zero)
{
@@ -81,4 +81,4 @@ BOOST_AUTO_TEST_CASE(compare_many)
BOOST_CHECK(other >= *this);
}
-BOOST_AUTO_TEST_SUITE_END();
+BOOST_AUTO_TEST_SUITE_END()
diff --git a/test/test-e2e.cpp b/test/test-e2e.cpp
index 8d9afb9..ca65e34 100644
--- a/test/test-e2e.cpp
+++ b/test/test-e2e.cpp
@@ -136,7 +136,7 @@ public:
std::optional<std::thread> repl;
};
-BOOST_FIXTURE_TEST_SUITE(setup, MockSetup);
+BOOST_FIXTURE_TEST_SUITE(setup, MockSetup)
BOOST_AUTO_TEST_CASE(e2e, *boost::unit_test::timeout(15))
{
@@ -330,20 +330,20 @@ replication_data_type_impl(Test * test)
replication_data_type_impl<T>(this); \
}
-TEST_MYSQL_TYPE(MYSQL_TYPE_STRING);
-TEST_MYSQL_TYPE(MYSQL_TYPE_VARCHAR);
-TEST_MYSQL_TYPE(MYSQL_TYPE_JSON);
+TEST_MYSQL_TYPE(MYSQL_TYPE_STRING)
+TEST_MYSQL_TYPE(MYSQL_TYPE_VARCHAR)
+TEST_MYSQL_TYPE(MYSQL_TYPE_JSON)
// TEST_MYSQL_TYPE(MYSQL_TYPE_ENUM); // we don't have sufficient data available to support this
-TEST_MYSQL_TYPE(MYSQL_TYPE_TINY);
-TEST_MYSQL_TYPE(MYSQL_TYPE_SHORT);
-TEST_MYSQL_TYPE(MYSQL_TYPE_LONG);
-TEST_MYSQL_TYPE(MYSQL_TYPE_INT24);
-TEST_MYSQL_TYPE(MYSQL_TYPE_LONGLONG);
-TEST_MYSQL_TYPE(MYSQL_TYPE_FLOAT);
-TEST_MYSQL_TYPE(MYSQL_TYPE_DOUBLE);
-TEST_MYSQL_TYPE(MYSQL_TYPE_YEAR);
-TEST_MYSQL_TYPE(MYSQL_TYPE_DATETIME);
-TEST_MYSQL_TYPE(MYSQL_TYPE_DATE);
-TEST_MYSQL_TYPE(MYSQL_TYPE_TIME);
-
-BOOST_AUTO_TEST_SUITE_END();
+TEST_MYSQL_TYPE(MYSQL_TYPE_TINY)
+TEST_MYSQL_TYPE(MYSQL_TYPE_SHORT)
+TEST_MYSQL_TYPE(MYSQL_TYPE_LONG)
+TEST_MYSQL_TYPE(MYSQL_TYPE_INT24)
+TEST_MYSQL_TYPE(MYSQL_TYPE_LONGLONG)
+TEST_MYSQL_TYPE(MYSQL_TYPE_FLOAT)
+TEST_MYSQL_TYPE(MYSQL_TYPE_DOUBLE)
+TEST_MYSQL_TYPE(MYSQL_TYPE_YEAR)
+TEST_MYSQL_TYPE(MYSQL_TYPE_DATETIME)
+TEST_MYSQL_TYPE(MYSQL_TYPE_DATE)
+TEST_MYSQL_TYPE(MYSQL_TYPE_TIME)
+
+BOOST_AUTO_TEST_SUITE_END()
diff --git a/test/test-postgresql.cpp b/test/test-postgresql.cpp
index dda05ca..f1c7990 100644
--- a/test/test-postgresql.cpp
+++ b/test/test-postgresql.cpp
@@ -96,7 +96,7 @@ BOOST_AUTO_TEST_CASE(mock_schema)
BOOST_CHECK_EQUAL(rs->at(0, 0).operator unsigned int(), 0);
}
-BOOST_FIXTURE_TEST_SUITE(ms, MemStream);
+BOOST_FIXTURE_TEST_SUITE(ms, MemStream)
BOOST_DATA_TEST_CASE(write_strings,
boost::unit_test::data::make({
@@ -154,4 +154,4 @@ BOOST_AUTO_TEST_CASE(write_blob)
BOOST_CHECK_EQUAL(out, R"B(\\x0010123090AAFF000000)B");
}
-BOOST_AUTO_TEST_SUITE_END();
+BOOST_AUTO_TEST_SUITE_END()
diff --git a/test/test-streams.cpp b/test/test-streams.cpp
index a4ff1a5..f037cc0 100644
--- a/test/test-streams.cpp
+++ b/test/test-streams.cpp
@@ -18,7 +18,7 @@ struct timespec;
struct tm;
#include <streamSupport.h>
-BOOST_FIXTURE_TEST_SUITE(stream, std::stringstream);
+BOOST_FIXTURE_TEST_SUITE(stream, std::stringstream)
template<typename In> using ToStream = std::tuple<In, std::string_view>;
BOOST_DATA_TEST_CASE(bytes,
@@ -102,4 +102,4 @@ BOOST_AUTO_TEST_CASE(vector)
BOOST_CHECK_EQUAL(this->str(), "[1,123456,-78910]");
}
-BOOST_AUTO_TEST_SUITE_END();
+BOOST_AUTO_TEST_SUITE_END()