Gromacs  2026.0-dev-20251119-5f0a571d
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Typedefs | Functions | Variables
h5md_datasetbase.cpp File Reference
#include "gmxpre.h"
#include "gromacs/fileio/h5md/h5md_datasetbase.h"
#include <hdf5.h>
#include <gtest/gtest.h>
#include "gromacs/fileio/h5md/h5md.h"
#include "gromacs/fileio/h5md/h5md_framedatasetbuilder.h"
#include "gromacs/fileio/h5md/h5md_type.h"
#include "gromacs/fileio/h5md/h5md_util.h"
#include "gromacs/fileio/h5md/tests/h5mdtestbase.h"
#include "gromacs/utility/exceptions.h"
#include "gromacs/utility/stringutil.h"
#include "gromacs/utility/vectypes.h"
#include "testutils/testfilemanager.h"
+ Include dependency graph for h5md_datasetbase.cpp:

Description

Tests for H5MD data set base class.

Author
Petter Johansson pettj.nosp@m.oha@.nosp@m.kth.s.nosp@m.e

Classes

class  gmx::test::anonymous_namespace{h5md_datasetbase.cpp}::H5mdDataSetBaseTest< ValueType >
 Test fixture for all relevant data set types. More...
 
struct  gmx::test::anonymous_namespace{h5md_datasetbase.cpp}::TestDimensions
 Helper struct to parametrize tests for combinations of dimensions, max dimensions and chunk dimensions. More...
 
class  gmx::test::anonymous_namespace{h5md_datasetbase.cpp}::H5mdDataSetBaseBasicVectorTest
 Parametrized test fixture for tests with different data set dimensions for BasicVector<T> sets. More...
 

Typedefs

using gmx::test::anonymous_namespace{h5md_datasetbase.cpp}::DataTypesToTest = ::testing::Types< int32_t, int64_t, float, double, gmx::BasicVector< float >, gmx::BasicVector< double >>
 List of all data types to create tests for.
 

Functions

template<typename AsType , typename OriginalType >
void gmx::test::anonymous_namespace{h5md_datasetbase.cpp}::testOpenDataSetAsType (const hid_t container)
 Test function for actual test below.
 
void gmx::test::anonymous_namespace{h5md_datasetbase.cpp}::PrintTo (const TestDimensions &info, std::ostream *os)
 Helper function for GTest to print dimension parameters.
 
std::string gmx::test::anonymous_namespace{h5md_datasetbase.cpp}::nameOfTest (const ::testing::TestParamInfo< TestDimensions > &info)
 Helper function for GTest to construct test names.
 

Variables

const TestDimensions gmx::test::anonymous_namespace{h5md_datasetbase.cpp}::g_dataSetDimsToTest [] = { { { 3 } }, { { 0, 3 } }, { { 0, 0, 3 } }, { { 5, 2, 3 } } }