Gromacs  2025-dev-20241003-bd59e46
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Public Attributes
gmx::test::anonymous_namespace{checkpointdata.cpp}::CheckpointDataTest Class Reference

Inherits Test.

+ Collaboration diagram for gmx::test::anonymous_namespace{checkpointdata.cpp}::CheckpointDataTest:

Description

CheckpointData test fixture.

Test whether input is equal to output, either with a single data type or with a combination of three data types.

Public Types

using WriteFunction = std::function< void(WriteCheckpointData *)>
 
using TestFunction = std::function< void(ReadCheckpointData *)>
 

Public Member Functions

template<typename T >
void addTestValues ()
 
void test ()
 

Public Attributes

std::vector< WriteFunction > writeFunctions_
 
std::vector< TestFunction > testFunctions_
 
std::vector< std::function
< void()> > 
addTestValueFunctions_
 
std::vector< std::string > testingTypes_
 
TestFileManager fileManager_
 
std::filesystem::path filename_ = fileManager_.getTemporaryFilePath("test.cpt")
 

Member Data Documentation

std::vector<std::function<void()> > gmx::test::anonymous_namespace{checkpointdata.cpp}::CheckpointDataTest::addTestValueFunctions_
Initial value:
= {
[this]() { addTestValues<std::string>(); },
[this]() { addTestValues<int>(); },
[this]() { addTestValues<int64_t>(); },
[this]() { addTestValues<bool>(); },
[this]() { addTestValues<float>(); },
[this]() { addTestValues<double>(); },
[this]() { addTestValues<std::vector<std::string>>(); },
[this]() { addTestValues<std::vector<int>>(); },
[this]() { addTestValues<std::vector<int64_t>>(); },
[this]() { addTestValues<std::vector<float>>(); },
[this]() { addTestValues<std::vector<double>>(); },
[this]() { addTestValues<tensor>(); }
}
std::vector<std::string> gmx::test::anonymous_namespace{checkpointdata.cpp}::CheckpointDataTest::testingTypes_
Initial value:
= { "std::string",
"int",
"int64_t",
"bool",
"float",
"double",
"std::vector<std::string>",
"std::vector<int>",
"std::vector<int64_t>",
"std::vector<float>",
"std::vector<double>",
"tensor" }

The documentation for this class was generated from the following file: