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

Classes

struct  DataSetDimensions
 Helper struct to parametrize tests for combinations of dimensions, max dimensions and chunk dimensions. More...
 
class  H5mdDataSetBuilderTestBase
 Test fixture for data set builders, inheriting parametrization capabilities. More...
 

Typedefs

using Primitive = H5mdDataSetBuilderTestBase< int32_t >
 Parametrized test suite for data sets of simple primitives.
 
using BasicVector = H5mdDataSetBuilderTestBase< gmx::BasicVector< float >>
 Parametrized test suite for data sets of BasicVector<T>
 
using H5mdDataSetBuilderTest = H5mdTestBase
 } More...
 

Functions

void PrintTo (const DataSetDimensions &info, std::ostream *os)
 Helper function for GTest to print dimension parameters.
 
std::string nameOfTest (const ::testing::TestParamInfo< DataSetDimensions > &info)
 Helper function for GTest to construct test names.
 

Variables

const DataSetDimensions g_validDataSetDimensions []
 Data set dimensions which should work when constructing data sets. More...
 
const DataSetDimensions g_validDimensionCombinations []
 Combinations which should work when constructing data sets. More...
 
const DataSetDimensions g_invalidDimensionCombinations []
 Combinations which should result in a throw when constructing data sets. More...
 

Typedef Documentation

using gmx::test::anonymous_namespace{h5md_datasetbuilder.cpp}::H5mdDataSetBuilderTest = typedef H5mdTestBase

}

Test fixture for data set builder.

Variable Documentation

const DataSetDimensions gmx::test::anonymous_namespace{h5md_datasetbuilder.cpp}::g_invalidDimensionCombinations[]
Initial value:
= {
{ {}, {}, {}, false },
{ { H5S_UNLIMITED }, {}, {}, false },
{ { H5S_UNLIMITED, 0 }, {}, {}, false },
{ { 0, H5S_UNLIMITED }, {}, {}, false },
{ { 0, 0 }, { 0 }, {}, false },
{ { 0, 0 }, { 0, 0, 0 }, {}, false },
{ { 0, 0 }, {}, { 0 }, false },
{ { 0, 0 }, {}, { 0, 0, 0 }, false },
{ { 1, 1 }, { 0, 1 }, {}, false },
{ { 1, 1 }, { 1, 0 }, {}, false },
{ { 1, 1 }, {}, { 0, 1 }, false },
{ { 1, 1 }, {}, { 1, 0 }, false },
}

Combinations which should result in a throw when constructing data sets.

const DataSetDimensions gmx::test::anonymous_namespace{h5md_datasetbuilder.cpp}::g_validDataSetDimensions[]
Initial value:
= {
{ { 0 } },
{ { 0, 0 } },
{ { 0, 0, 0 } },
{ { 1 } },
{ { 1, 1 } },
{ { 1, 1, 1 } },
{ { 5 } },
{ { 5, 1, 2 } },
{ { 0, 5, 2 } },
{ { 0, 1, 5 } }
}

Data set dimensions which should work when constructing data sets.

const DataSetDimensions gmx::test::anonymous_namespace{h5md_datasetbuilder.cpp}::g_validDimensionCombinations[]
Initial value:
= {
{ { 0 }, {}, {}, true },
{ { 1 }, {}, {}, true },
{ { 0 }, { 0 }, {}, true },
{ { 0 }, {}, { 1 }, true },
{ { 0 }, { 0 }, { 1 }, true },
{ { 0, 0 }, { 0, 0 }, { 1, 1 }, true },
{ { 1, 2 }, { 1, 2 }, {}, true },
{ { 1, 2 }, {}, { 1, 2 }, true },
{ { 1, 2 }, { 1, 2 }, { 1, 2 }, true },
{ { 0, 1 }, { 1, 1 }, {}, true },
{ { 0, 1 }, { 0, 2 }, {}, true },
{ { 0, 1 }, { 1, 2 }, {}, true },
{ { 0, 1 }, { H5S_UNLIMITED, 1 }, {}, true },
{ { 0, 1 }, { 0, H5S_UNLIMITED }, {}, true },
{ { 0, 1 }, { H5S_UNLIMITED, H5S_UNLIMITED }, {}, true }
}

Combinations which should work when constructing data sets.