Gromacs  2026.0-dev-20251119-5f0a571d
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Functions | Variables
gmx::test::anonymous_namespace{h5md_fixeddataset.cpp} Namespace Reference

Classes

struct  TestDimensions
 Helper struct to parametrize tests for combinations of dimensions, max dimensions and chunk dimensions. More...
 
class  WithDims
 Parametrized test fixture for tests with different data set dimensions for BasicVector<T> sets. More...
 
struct  StringDataSetType
 Type of string data set with fixed max string size, or nullopt for variable-string data sets. More...
 
class  StringTypes
 Test fixture for an open H5md file with string data sets. More...
 

Functions

std::vector< std::string > readFixedSizeStringData (const hid_t container, const char *name)
 Helper function to read fixed-size strings from a data set.
 
void PrintTo (const TestDimensions &info, std::ostream *os)
 Helper function for GTest to print dimension parameters.
 
std::string nameOfTest (const ::testing::TestParamInfo< TestDimensions > &info)
 Helper function for GTest to construct test names.
 
void PrintTo (const StringDataSetType &param, std::ostream *os)
 Helper function for GTest to print size parameter.
 
static std::string nameOfStringTest (const ::testing::TestParamInfo< StringDataSetType > &info)
 Helper function for GTest to construct test names.
 

Variables

const TestDimensions g_dataSetDimsToTest []
 
constexpr size_t c_maxVariableStringLength = 4096
 
const StringDataSetType g_stringDataSetTypes []
 

Variable Documentation

const TestDimensions gmx::test::anonymous_namespace{h5md_fixeddataset.cpp}::g_dataSetDimsToTest[]
Initial value:
= { { { 0 } },
{ { 0, 0 } },
{ { 3 } },
{ { 0, 3 } },
{ { 5, 2, 3 } } }
const StringDataSetType gmx::test::anonymous_namespace{h5md_fixeddataset.cpp}::g_stringDataSetTypes[]
Initial value:
= {
{ std::nullopt },
{ 1 },
{ 2 },
{ 16 }
}