preCICE v3.1.2
Loading...
Searching...
No Matches
Namespaces | Functions
Testing.cpp File Reference
#include <algorithm>
#include <boost/test/framework.hpp>
#include <boost/test/tree/test_unit.hpp>
#include <cstdlib>
#include <filesystem>
#include <limits>
#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"
Include dependency graph for Testing.cpp:

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.
 
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)