Gromacs
2026.0-dev-20250422-b697545
|
#include "gmxpre.h"
#include "gromacs/utility/stringtoenumvalueconverter.h"
#include <optional>
#include <ostream>
#include <string>
#include <gtest/gtest.h>
#include "gromacs/utility/enumerationhelpers.h"
#include "gromacs/utility/stringcompare.h"
Tests for string-to-enum-value helper functor.
Enumerations | |
enum | gmx::test::anonymous_namespace{stringtoenumvalueconverter.cpp}::Foo : int { Bar, Ugh, Fooz, Weird, Empty, Count, Default = Ugh } |
Type to use in testing. | |
Functions | |
const char * | gmx::test::anonymous_namespace{stringtoenumvalueconverter.cpp}::enumValueToString (Foo f) |
Declare the conventional conversion function. | |
const char * | gmx::test::anonymous_namespace{stringtoenumvalueconverter.cpp}::enumValueToLetterAsString (Foo f) |
Declare an atypical conversion function. | |
::std::ostream & | gmx::test::anonymous_namespace{stringtoenumvalueconverter.cpp}::operator<< (::std::ostream &os, const std::optional< Foo > &f) |
Pretty-printer for GoogleTest to use. | |