diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-09-21 17:59:41 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-09-21 17:59:41 +0100 |
commit | 465ea24362ee267cf83909efa0b5cdee689ff1f7 (patch) | |
tree | d51980f0d0ca1460c320704aea50030043692e7e /libpqpp/unittests | |
parent | Pass cppcheck and clang-tidy (diff) | |
download | libdbpp-postgresql-465ea24362ee267cf83909efa0b5cdee689ff1f7.tar.bz2 libdbpp-postgresql-465ea24362ee267cf83909efa0b5cdee689ff1f7.tar.xz libdbpp-postgresql-465ea24362ee267cf83909efa0b5cdee689ff1f7.zip |
First commit passing IWYU
Diffstat (limited to 'libpqpp/unittests')
-rw-r--r-- | libpqpp/unittests/testpq.cpp | 38 |
1 files changed, 36 insertions, 2 deletions
diff --git a/libpqpp/unittests/testpq.cpp b/libpqpp/unittests/testpq.cpp index 2314fb9..ba7fb6b 100644 --- a/libpqpp/unittests/testpq.cpp +++ b/libpqpp/unittests/testpq.cpp @@ -1,19 +1,53 @@ #define BOOST_TEST_MODULE TestPQ #include <boost/test/unit_test.hpp> -#include <boost/date_time/posix_time/posix_time.hpp> +#include "command_fwd.h" +#include "connection.h" +#include "dbTypes.h" +#include "mockDatabase.h" +#include <array> +#include <boost/date_time/gregorian/greg_date.hpp> +#include <boost/date_time/posix_time/conversion.hpp> +#include <boost/date_time/posix_time/posix_time.hpp> // IWYU pragma: keep +#include <boost/date_time/posix_time/posix_time_types.hpp> +#include <boost/date_time/posix_time/ptime.hpp> +#include <boost/date_time/time.hpp> +#include <boost/date_time/time_system_counted.hpp> #include <column.h> +#include <cstdint> +#include <cstdio> +#include <cstring> #include <definedDirs.h> +#include <factory.impl.h> #include <fileUtils.h> #include <fstream> +#include <libpq-fe.h> +#include <memory> #include <modifycommand.h> +#include <optional> #include <pq-command.h> #include <pq-connection.h> -#include <pq-error.h> #include <pq-mock.h> #include <selectcommand.h> #include <selectcommandUtil.impl.h> +#include <stdexcept> +#include <string> +#include <string_view> #include <testCore.h> +#include <type_traits> +#include <unistd.h> +#include <utility> +#include <vector> + +namespace DB { + class ColumnTypeNotSupported; +} +namespace DB { + class Error; +} +namespace boost::posix_time { + class time_duration; +} class StandardMockDatabase : public DB::PluginMock<PQ::Mock> { public: |