catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
More include simplifications
- Commit
bc68b9f454021455f35fc005e59663a62ed71bca- Author
- Martin Hořeňovský ·
- Parents
67d513aa73ca
Changes
include/internal/catch_commandline.hpp | 1 + include/internal/catch_config.hpp | 2 -- include/internal/catch_debugger.hpp | 2 -- include/internal/catch_interfaces_config.h | 2 +- include/internal/catch_interfaces_reporter.h | 1 - include/internal/catch_notimplemented_exception.h | 1 - include/internal/catch_notimplemented_exception.hpp | 2 +- include/internal/catch_section.hpp | 1 - include/internal/catch_section_info.h | 2 ++ include/internal/catch_section_info.hpp | 5 +---- include/internal/catch_test_case_registry_impl.hpp | 1 - 11 files changed, 6 insertions(+), 14 deletions(-) diff --git a/include/internal/catch_commandline.hpp b/include/internal/catch_commandline.hpp index 133dbf5c..742f01a4 100644 --- a/include/internal/catch_commandline.hpp +++ b/include/internal/catch_commandline.hpp @@ -13,6 +13,7 @@ #include "catch_clara.h" #include <fstream> +#include <ctime> namespace Catch { diff --git a/include/internal/catch_config.hpp b/include/internal/catch_config.hpp index 2f4c25e9..174850bf 100644 --- a/include/internal/catch_config.hpp +++ b/include/internal/catch_config.hpp @@ -16,8 +16,6 @@ #include <memory> #include <vector> #include <string> -#include <iostream> -#include <ctime> #include <stdexcept> #ifndef CATCH_CONFIG_CONSOLE_WIDTH diff --git a/include/internal/catch_debugger.hpp b/include/internal/catch_debugger.hpp index 63d476bb..47daf8ad 100644 --- a/include/internal/catch_debugger.hpp +++ b/include/internal/catch_debugger.hpp @@ -11,8 +11,6 @@ #include "catch_debugger.h" -#include <iostream> - #ifdef CATCH_PLATFORM_MAC #include <assert.h> diff --git a/include/internal/catch_interfaces_config.h b/include/internal/catch_interfaces_config.h index 08226c88..5730a8cd 100644 --- a/include/internal/catch_interfaces_config.h +++ b/include/internal/catch_interfaces_config.h @@ -8,7 +8,7 @@ #ifndef TWOBLUECUBES_CATCH_INTERFACES_CONFIG_H_INCLUDED #define TWOBLUECUBES_CATCH_INTERFACES_CONFIG_H_INCLUDED -#include <iostream> +#include <iosfwd> #include <string> #include <vector> diff --git a/include/internal/catch_interfaces_reporter.h b/include/internal/catch_interfaces_reporter.h index 3aebab98..6c47d8e4 100644 --- a/include/internal/catch_interfaces_reporter.h +++ b/include/internal/catch_interfaces_reporter.h @@ -21,7 +21,6 @@ #include <string> #include <ostream> #include <map> -#include <assert.h> namespace Catch { diff --git a/include/internal/catch_notimplemented_exception.h b/include/internal/catch_notimplemented_exception.h index 2e38b98f..128fff28 100644 --- a/include/internal/catch_notimplemented_exception.h +++ b/include/internal/catch_notimplemented_exception.h @@ -9,7 +9,6 @@ #define TWOBLUECUBES_CATCH_NOTIMPLEMENTED_EXCEPTION_H_INCLUDED #include "catch_common.h" -#include <ostream> namespace Catch { diff --git a/include/internal/catch_notimplemented_exception.hpp b/include/internal/catch_notimplemented_exception.hpp index 4d263f1b..e4afdc67 100644 --- a/include/internal/catch_notimplemented_exception.hpp +++ b/include/internal/catch_notimplemented_exception.hpp @@ -9,7 +9,7 @@ #define TWOBLUECUBES_CATCH_NOTIMPLEMENTED_EXCEPTION_HPP_INCLUDED #include "catch_notimplemented_exception.h" -#include <ostream> +#include <sstream> namespace Catch { diff --git a/include/internal/catch_section.hpp b/include/internal/catch_section.hpp index de65c4cd..a5d1b6d5 100644 --- a/include/internal/catch_section.hpp +++ b/include/internal/catch_section.hpp @@ -11,7 +11,6 @@ #include "catch_section.h" #include "catch_capture.hpp" #include "catch_compiler_capabilities.h" -#include "catch_timer.h" namespace Catch { diff --git a/include/internal/catch_section_info.h b/include/internal/catch_section_info.h index 00b65600..c9f1c7f1 100644 --- a/include/internal/catch_section_info.h +++ b/include/internal/catch_section_info.h @@ -11,6 +11,8 @@ #include "catch_common.h" #include "catch_totals.hpp" +#include <string> + namespace Catch { struct SectionInfo { diff --git a/include/internal/catch_section_info.hpp b/include/internal/catch_section_info.hpp index 6258a281..aebbf6a5 100644 --- a/include/internal/catch_section_info.hpp +++ b/include/internal/catch_section_info.hpp @@ -8,10 +8,7 @@ #ifndef TWOBLUECUBES_CATCH_SECTION_INFO_HPP_INCLUDED #define TWOBLUECUBES_CATCH_SECTION_INFO_HPP_INCLUDED -#include "catch_common.h" - -#include <map> -#include <string> +#include "catch_section_info.h" namespace Catch { diff --git a/include/internal/catch_test_case_registry_impl.hpp b/include/internal/catch_test_case_registry_impl.hpp index 0565b54a..316c6c2c 100644 --- a/include/internal/catch_test_case_registry_impl.hpp +++ b/include/internal/catch_test_case_registry_impl.hpp @@ -16,7 +16,6 @@ #include <vector> #include <set> #include <sstream> -#include <iostream> #include <algorithm>