Skip to content
Snippets Groups Projects
Commit eff99499 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Remove stupidly placed include directives in cpp files ...

parent c3f29d20
No related branches found
No related tags found
1 merge request!63Feature/utils coverage
#ifndef TEST_BUILD_INFO_HPP
#define TEST_BUILD_INFO_HPP
#include <catch2/catch.hpp> #include <catch2/catch.hpp>
#include <utils/BuildInfo.hpp> #include <utils/BuildInfo.hpp>
...@@ -66,5 +63,3 @@ TEST_CASE("BuildInfo", "[utils]") ...@@ -66,5 +63,3 @@ TEST_CASE("BuildInfo", "[utils]")
#endif // PUGS_HAS_PETSC #endif // PUGS_HAS_PETSC
} }
} }
#endif // TEST_BUILD_INFO_HPP
#ifndef TEST_CRS_GRAPH_HPP
#define TEST_CRS_GRAPH_HPP
#include <catch2/catch.hpp> #include <catch2/catch.hpp>
#include <utils/CRSGraph.hpp> #include <utils/CRSGraph.hpp>
...@@ -40,5 +37,3 @@ TEST_CASE("CRSGraph", "[utils]") ...@@ -40,5 +37,3 @@ TEST_CASE("CRSGraph", "[utils]")
REQUIRE(neighbors.size() == graph.neighbors().size()); REQUIRE(neighbors.size() == graph.neighbors().size());
REQUIRE(&neighbors[0] == &graph.neighbors()[0]); REQUIRE(&neighbors[0] == &graph.neighbors()[0]);
} }
#endif // TEST_CRS_GRAPH_HPP
#ifndef TEST_CAST_ARRAY_HPP
#define TEST_CAST_ARRAY_HPP
#include <catch2/catch.hpp> #include <catch2/catch.hpp>
#include <utils/ArrayUtils.hpp> #include <utils/ArrayUtils.hpp>
...@@ -89,5 +86,3 @@ TEST_CASE("CastArray", "[utils]") ...@@ -89,5 +86,3 @@ TEST_CASE("CastArray", "[utils]")
} }
} }
} }
#endif // TEST_CAST_ARRAY_HPP
#ifndef TEST_CONSOLE_MANAGER_HPP
#define TEST_CONSOLE_MANAGER_HPP
#include <catch2/catch.hpp> #include <catch2/catch.hpp>
#include <utils/ConsoleManager.hpp> #include <utils/ConsoleManager.hpp>
...@@ -33,5 +30,3 @@ TEST_CASE("ConsoleManager", "[utils]") ...@@ -33,5 +30,3 @@ TEST_CASE("ConsoleManager", "[utils]")
rang::setControlMode(saved_control); rang::setControlMode(saved_control);
} }
} }
#endif // TEST_CONSOLE_MANAGER_HPP
#ifndef TEST_DEMANGLE_HPP
#define TEST_DEMANGLE_HPP
#include <catch2/catch.hpp> #include <catch2/catch.hpp>
#include <utils/Demangle.hpp> #include <utils/Demangle.hpp>
...@@ -38,5 +35,3 @@ TEST_CASE("Demangle", "[utils]") ...@@ -38,5 +35,3 @@ TEST_CASE("Demangle", "[utils]")
REQUIRE((std::string{"not_mangled"} == demangle("not_mangled"))); REQUIRE((std::string{"not_mangled"} == demangle("not_mangled")));
} }
} }
#endif // TEST_DEMANGLE_HPP
#ifndef TEST_ESCAPED_STRING_HPP
#define TEST_ESCAPED_STRING_HPP
#include <catch2/catch.hpp> #include <catch2/catch.hpp>
#include <utils/EscapedString.hpp> #include <utils/EscapedString.hpp>
...@@ -23,5 +20,3 @@ TEST_CASE("EscapedString", "[utils]") ...@@ -23,5 +20,3 @@ TEST_CASE("EscapedString", "[utils]")
REQUIRE(unescapeString(s) == std::string{"foo\'\\\"\?\a\b\f\n\r\t\vbar"}); REQUIRE(unescapeString(s) == std::string{"foo\'\\\"\?\a\b\f\n\r\t\vbar"});
} }
} }
#endif // TEST_ESCAPED_STRING_HPP
#ifndef TEST_EXCEPTIONS_HPP
#define TEST_EXCEPTIONS_HPP
#include <catch2/catch.hpp> #include <catch2/catch.hpp>
#include <utils/Exceptions.hpp> #include <utils/Exceptions.hpp>
...@@ -21,5 +18,3 @@ TEST_CASE("Exceptions", "[utils]") ...@@ -21,5 +18,3 @@ TEST_CASE("Exceptions", "[utils]")
REQUIRE(std::string{not_implemented_error.what()} == "not implemented yet: not implemented error"); REQUIRE(std::string{not_implemented_error.what()} == "not implemented yet: not implemented error");
} }
} }
#endif // TEST_EXCEPTIONS_HPP
#ifndef TEST_PARTITIONER_HPP
#define TEST_PARTITIONER_HPP
#include <catch2/catch.hpp> #include <catch2/catch.hpp>
#include <utils/Messenger.hpp> #include <utils/Messenger.hpp>
...@@ -87,5 +84,3 @@ TEST_CASE("Partitioner", "[utils]") ...@@ -87,5 +84,3 @@ TEST_CASE("Partitioner", "[utils]")
} }
} }
} }
#endif // TEST_PARTITIONER_HPP
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment