diff options
author | Dan Goodliffe <dan.goodliffe@octal.co.uk> | 2022-02-15 17:34:51 +0000 |
---|---|---|
committer | Dan Goodliffe <dan.goodliffe@octal.co.uk> | 2022-02-15 17:34:51 +0000 |
commit | 4ac149951b2020b4a6dafb0455d3f523e7c9cfe6 (patch) | |
tree | 698d4471463b68bc16ce2f291a0eaab86bcb5e13 /unittests | |
parent | Bump to C++20 for compat with other libs (diff) | |
download | netfs-gitfs-4ac149951b2020b4a6dafb0455d3f523e7c9cfe6.tar.bz2 netfs-gitfs-4ac149951b2020b4a6dafb0455d3f523e7c9cfe6.tar.xz netfs-gitfs-4ac149951b2020b4a6dafb0455d3f523e7c9cfe6.zip |
Fix up all warnings from all the toolsnetfs-gitfs-0.2.2
Diffstat (limited to 'unittests')
-rw-r--r-- | unittests/config.cpp | 12 | ||||
-rw-r--r-- | unittests/core.cpp | 18 | ||||
-rw-r--r-- | unittests/mockDefs.cpp | 9 | ||||
-rw-r--r-- | unittests/mockDefs.h | 2 | ||||
-rw-r--r-- | unittests/service.cpp | 11 |
5 files changed, 46 insertions, 6 deletions
diff --git a/unittests/config.cpp b/unittests/config.cpp index 20a025a..6e3f92c 100644 --- a/unittests/config.cpp +++ b/unittests/config.cpp @@ -1,10 +1,20 @@ #define BOOST_TEST_MODULE GitFS_Config -#include <boost/test/data/test_case.hpp> +#include <boost/test/data/test_case.hpp> // IWYU pragma: keep #include <boost/test/unit_test.hpp> #include "mockDefs.h" #include <compileTimeFormatter.h> #include <definedDirs.h> +#include <dryice.h> +#include <filesystem> +#include <map> +#include <memory> +#include <service.h> +#include <string> +#include <volume.h> +namespace NetFS { + class ConfigError; +} using namespace GitFS; using namespace GitFS::Test; diff --git a/unittests/core.cpp b/unittests/core.cpp index 9cd7552..e64ae80 100644 --- a/unittests/core.cpp +++ b/unittests/core.cpp @@ -1,10 +1,22 @@ #define BOOST_TEST_MODULE GitFS_Core -#include <boost/test/data/test_case.hpp> +#include <boost/test/data/test_case.hpp> // IWYU pragma: keep #include <boost/test/unit_test.hpp> #include "mockDefs.h" -#include "sys/fcntl.h" -#include "sys/stat.h" +#include <algorithm> +#include <cerrno> +#include <cstdio> +#include <exceptions.h> +#include <fcntl.h> +#include <map> +#include <memory> +#include <ostream> +#include <string> +#include <sys/stat.h> +#include <tuple> +#include <unistd.h> +#include <vector> +#include <volume.h> using namespace GitFS; using namespace GitFS::Test; diff --git a/unittests/mockDefs.cpp b/unittests/mockDefs.cpp index a257758..a144575 100644 --- a/unittests/mockDefs.cpp +++ b/unittests/mockDefs.cpp @@ -1,7 +1,14 @@ #include "mockDefs.h" -#include <boost/test/test_tools.hpp> +#include <boost/test/test_tools.hpp> // IWYU pragma: keep #include <compileTimeFormatter.h> #include <definedDirs.h> +#include <dryice.h> +#include <filesystem> +#include <memory> +#include <service.h> +#include <string> +#include <volume.h> +// IWYU pragma: no_include <boost/test/unit_test.hpp> using namespace AdHoc::literals; diff --git a/unittests/mockDefs.h b/unittests/mockDefs.h index 750a256..9efe187 100644 --- a/unittests/mockDefs.h +++ b/unittests/mockDefs.h @@ -3,7 +3,9 @@ #include <dryice.h> #include <service.h> +#include <types.h> #include <visibility.h> +#include <volume.h> namespace GitFS::Test { class DLL_PUBLIC Service : public IceTray::DryIce { diff --git a/unittests/service.cpp b/unittests/service.cpp index b1bab5a..e2829a6 100644 --- a/unittests/service.cpp +++ b/unittests/service.cpp @@ -1,10 +1,19 @@ #define BOOST_TEST_MODULE GitFS_Service -#include <boost/test/data/test_case.hpp> +#include <boost/test/data/test_case.hpp> // IWYU pragma: keep #include <boost/test/unit_test.hpp> #include "mockDefs.h" #include <compileTimeFormatter.h> #include <definedDirs.h> +#include <dryice.h> +#include <filesystem> +#include <memory> +#include <service.h> +#include <string> +namespace NetFS { + class AuthError; + class ConfigError; +} using namespace GitFS; using namespace GitFS::Test; |