Gromacs  2024.4
 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:

Description

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.

Author
Teemu Murtola teemu.nosp@m..mur.nosp@m.tola@.nosp@m.gmai.nosp@m.l.com

Enumerations

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

Variables

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.