Gromacs  2024.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
fileioxdrserializer.cpp File Reference
#include "gmxpre.h"
#include <gtest/gtest.h>
#include "gromacs/fileio/gmxfio.h"
#include "gromacs/fileio/gmxfio_xdr.h"
#include "gromacs/utility/futil.h"
#include "testutils/testfilemanager.h"
+ Include dependency graph for fileioxdrserializer.cpp:

Description

Tests for gmx::FileIOXdrSerializer.

Author
Mark Abraham mark..nosp@m.j.ab.nosp@m.raham.nosp@m.@gma.nosp@m.il.co.nosp@m.m

Functions

constexpr int gmx::test::anonymous_namespace{fileioxdrserializer.cpp}::integerSizeDependentTestingValue ()
 Return the integer used for testing, depending on the size of int.
 

Variables

constexpr std::int16_t gmx::test::anonymous_namespace{fileioxdrserializer.cpp}::c_int16Value = static_cast<std::int16_t>(0x7A2B)
 Constants used for testing endian swap operations.
 
constexpr std::int32_t gmx::test::anonymous_namespace{fileioxdrserializer.cpp}::c_int32Value = static_cast<std::int32_t>(0x78ABCDEF)
 
constexpr std::int64_t gmx::test::anonymous_namespace{fileioxdrserializer.cpp}::c_int64Value = static_cast<std::int64_t>(0x78ABCDEF12345678)
 
constexpr const IntAndFloat32 gmx::test::anonymous_namespace{fileioxdrserializer.cpp}::c_intAndFloat32 { c_int32Value }
 
constexpr const IntAndFloat64 gmx::test::anonymous_namespace{fileioxdrserializer.cpp}::c_intAndFloat64 { c_int64Value }