Gromacs
2024.4
|
#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"
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.
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. | |