Gromacs  2024.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Enumerations | Variables
optionsassigner.cpp File Reference
#include "gmxpre.h"
#include "gromacs/options/optionsassigner.h"
#include <limits>
#include <vector>
#include <gtest/gtest.h>
#include "gromacs/options/basicoptions.h"
#include "gromacs/options/options.h"
#include "gromacs/options/optionsection.h"
#include "gromacs/utility/any.h"
#include "gromacs/utility/exceptions.h"
#include "gromacs/utility/stringutil.h"
#include "testutils/testasserts.h"
+ Include dependency graph for optionsassigner.cpp:


Tests option assignment.

In addition to testing gmx::OptionsAssigner, these are the main tests for the classes from basicoptions.h and basicoptionstorage.h (and their base classes) that actually implement the behavior, as well as for the internal implementation of the gmx::Options and gmx::AbstractOptionStorage classes.

Teemu Murtola


enum  anonymous_namespace{optionsassigner.cpp}::TestEnum : int { None, Test, Value, Count }
 Enum type for EnumOption tests.


const char *const anonymous_namespace{optionsassigner.cpp}::c_allowed [] = { "none", "test", "value" }
 Set of allowed values for enum option tests.
const gmx::EnumerationArray
< TestEnum, const char * > 
anonymous_namespace{optionsassigner.cpp}::c_testEnumNames = { { "none", "test", "value" } }
 Set of allowed values for enum option tests.