![]() |
OGS
|
|
Typedefs | |
| using | FilePairs = std::vector<std::pair<std::string, std::string>> |
| Pairs of reference and output file names to be compared. | |
Functions | |
| bool | isConvertibleToDouble (std::string const &s) |
| Test if the given string is convertible to a valid double value, not a NaN. | |
| std::string | safeString (std::string const &s) |
| Wraps a string into double ticks. | |
| std::string | findDiffTool (std::string const &executable_name, std::string const &environment_variable_name) |
| std::string | formatPathForDiffTool (std::string const &filename) |
| void | checkTolerance (std::string const &tolerance_name, std::string const &tolerance) |
| FilePairs | findFilesMatchingRegex (std::string const ®ex_string, std::string const &reference_path) |
| Collects all file names in reference_path matching the regex. | |
| using anonymous_namespace{TestDefinition.cpp}::FilePairs = std::vector<std::pair<std::string, std::string>> |
Pairs of reference and output file names to be compared.
Definition at line 174 of file TestDefinition.cpp.
| void anonymous_namespace{TestDefinition.cpp}::checkTolerance | ( | std::string const & | tolerance_name, |
| std::string const & | tolerance ) |
Definition at line 162 of file TestDefinition.cpp.
References isConvertibleToDouble(), and OGS_FATAL.
| std::string anonymous_namespace{TestDefinition.cpp}::findDiffTool | ( | std::string const & | executable_name, |
| std::string const & | environment_variable_name ) |
Tries to find a diff tool executable by testing 'path/tool –version' calls for various paths.
Definition at line 69 of file TestDefinition.cpp.
References DBUG(), BaseLib::extractBaseNameWithoutExtension(), BaseLib::IsFileExisting(), BaseLib::joinPaths(), OGS_FATAL, and WARN().
| FilePairs anonymous_namespace{TestDefinition.cpp}::findFilesMatchingRegex | ( | std::string const & | regex_string, |
| std::string const & | reference_path ) |
Collects all file names in reference_path matching the regex.
Definition at line 177 of file TestDefinition.cpp.
References DBUG().
| std::string anonymous_namespace{TestDefinition.cpp}::formatPathForDiffTool | ( | std::string const & | filename | ) |
Definition at line 145 of file TestDefinition.cpp.
References safeString().
| bool anonymous_namespace{TestDefinition.cpp}::isConvertibleToDouble | ( | std::string const & | s | ) |
Test if the given string is convertible to a valid double value, not a NaN.
Definition at line 30 of file TestDefinition.cpp.
References ERR().
Referenced by checkTolerance().
| std::string anonymous_namespace{TestDefinition.cpp}::safeString | ( | std::string const & | s | ) |
Wraps a string into double ticks.
Definition at line 60 of file TestDefinition.cpp.
Referenced by formatPathForDiffTool().