summaryrefslogtreecommitdiff
path: root/libdbpp/testCore.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libdbpp/testCore.cpp')
-rw-r--r--libdbpp/testCore.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libdbpp/testCore.cpp b/libdbpp/testCore.cpp
index d142000..785d990 100644
--- a/libdbpp/testCore.cpp
+++ b/libdbpp/testCore.cpp
@@ -19,7 +19,7 @@ TestCore::TestCore() :
template<typename T>
class Assert : public DB::HandleField {
public:
- Assert(const T & e) : expected(e) { }
+ explicit Assert(const T & e) : expected(e) { }
void floatingpoint(double v) override { (*this)(v); }
void integer(int64_t v) override { (*this)(v); }
@@ -32,10 +32,12 @@ class Assert : public DB::HandleField {
template <typename D>
void operator()(const D & v) {
+ // NOLINTNEXTLINE(hicpp-braces-around-statements)
if constexpr (std::is_convertible<D, T>::value) {
BOOST_REQUIRE_EQUAL(expected, v);
}
else {
+ // NOLINTNEXTLINE(hicpp-vararg)
BOOST_ERROR("Unexpected column type " << typeid(D).name());
}
}