|
preCICE v3.3.0
|
#include <algorithm>#include <boost/test/framework.hpp>#include <boost/test/tree/test_unit.hpp>#include <precice/Exceptions.hpp>#include <cstdlib>#include <filesystem>#include <limits>#include <regex>#include <string>#include "logging/LogMacros.hpp"#include "logging/Logger.hpp"#include "testing/SourceLocation.hpp"#include "testing/Testing.hpp"#include "utils/ManageUniqueIDs.hpp"#include "utils/assertion.hpp"Go to the source code of this file.
Namespaces | |
| namespace | precice |
| Main namespace of the precice library. | |
| namespace | precice::testing |
| contains the testing framework. | |
Functions | |
| DataID | precice::testing::operator""_dataID (unsigned long long n) |
| std::string | precice::testing::getPathToRepository () |
| Returns the base path of the repo. | |
| std::string | precice::testing::getPathToSources () |
| Returns the base path to the sources. | |
| std::string | precice::testing::getPathToTests () |
| Returns the base path to the integration tests. | |
| std::string | precice::testing::getTestPath () |
| Returns the full path to the file containing the current test. | |
| std::string | precice::testing::getTestName () |
| Returns the name of the current test. | |
| std::string | precice::testing::getFullTestName () |
| Return the full name of the current test as seen in boost assertions. | |
| TestSetup | precice::testing::getTestSetup () |
| Returns the registered TestSetup for the test. | |
| std::optional< TestSetup > | precice::testing::getTestSetupFor (const boost::unit_test::test_unit &tu) |
| Returns the registered TestSetup for a test if available. | |
| int | precice::testing::nextMeshID () |
| boost::test_tools::predicate_result | precice::testing::equals (const std::vector< float > &VectorA, const std::vector< float > &VectorB, float tolerance) |
| equals to be used in tests. Compares two std::vectors using a given tolerance. Prints both operands on failure | |
| boost::test_tools::predicate_result | precice::testing::equals (const std::vector< double > &VectorA, const std::vector< double > &VectorB, double tolerance) |
| boost::test_tools::predicate_result | precice::testing::equals (float a, float b, float tolerance=math::NUMERICAL_ZERO_DIFFERENCE) |
| equals to be used in tests. Compares two scalar numbers using a given tolerance. Prints both operands on failure | |
| boost::test_tools::predicate_result | precice::testing::equals (double a, double b, double tolerance) |
| void | precice::testing::expectFile (std::string_view name) |
| ErrorPredicate | precice::testing::errorContains (std::string_view substring) |
| Checks if the message of a given precice::Error contains a substring. | |
| ErrorPredicate | precice::testing::errorMatches (std::string regex) |
| Checks if the message of a given precice::Error matches a regex. | |