![]() |
Project
|
#include <boost/test/unit_test.hpp>#include <boost/preprocessor/arithmetic/inc.hpp>#include <boost/preprocessor/repetition/repeat.hpp>#include <stdexcept>#include <string>#include "CommonUtils/EnumFlags.h"Go to the source code of this file.
Macros | |
| #define | BOOST_TEST_MODULE Test Flags |
| #define | BOOST_TEST_MAIN |
| #define | BOOST_TEST_DYN_LINK |
| #define | ENUM_BIT_NAME(n) Bit##n |
| #define | ENUM_BIT_NAME_EXPAND(n) ENUM_BIT_NAME(n) |
| #define | ENUM_BIT(z, n, _) ENUM_BIT_NAME_EXPAND(BOOST_PP_INC(n)) = (n), |
Enumerations | |
| enum class | TestEnum : uint8_t { Bit1 = 0 , Bit2 , Bit3 , Bit4 , Bit5VeryLongName } |
| enum class | TestEnumLong : uint64_t |
Functions | |
| BOOST_AUTO_TEST_CASE (Flags_test) | |
| BOOST_AUTO_TEST_CASE (Flags_case_insensitive_test) | |
| BOOST_AUTO_TEST_CASE (Flags_error_recovery_test) | |
| BOOST_AUTO_TEST_CASE (Flags_whitespace_handling_test) | |
| BOOST_AUTO_TEST_CASE (Flags_count_bits_test) | |
| BOOST_AUTO_TEST_CASE (Flags_mixed_delimiter_validation_test) | |
| BOOST_AUTO_TEST_CASE (Flags_empty_and_edge_cases_test) | |
| BOOST_AUTO_TEST_CASE (Flags_binary_decimal_parsing_test) | |
| BOOST_AUTO_TEST_CASE (Flags_operator_bool_test) | |
| #define BOOST_TEST_DYN_LINK |
Definition at line 14 of file testEnumFlags.cxx.
| #define BOOST_TEST_MAIN |
Definition at line 13 of file testEnumFlags.cxx.
| #define BOOST_TEST_MODULE Test Flags |
Definition at line 12 of file testEnumFlags.cxx.
| #define ENUM_BIT | ( | z, | |
| n, | |||
| _ | |||
| ) | ENUM_BIT_NAME_EXPAND(BOOST_PP_INC(n)) = (n), |
Definition at line 38 of file testEnumFlags.cxx.
Definition at line 36 of file testEnumFlags.cxx.
| #define ENUM_BIT_NAME_EXPAND | ( | n | ) | ENUM_BIT_NAME(n) |
Definition at line 37 of file testEnumFlags.cxx.
|
strong |
| Enumerator | |
|---|---|
| Bit1 | |
| Bit2 | |
| Bit3 | |
| Bit4 | |
| Bit5VeryLongName | |
Definition at line 26 of file testEnumFlags.cxx.
|
strong |
Definition at line 39 of file testEnumFlags.cxx.
| BOOST_AUTO_TEST_CASE | ( | Flags_binary_decimal_parsing_test | ) |
Definition at line 558 of file testEnumFlags.cxx.
| BOOST_AUTO_TEST_CASE | ( | Flags_case_insensitive_test | ) |
Definition at line 321 of file testEnumFlags.cxx.
| BOOST_AUTO_TEST_CASE | ( | Flags_count_bits_test | ) |
Definition at line 439 of file testEnumFlags.cxx.
| BOOST_AUTO_TEST_CASE | ( | Flags_empty_and_edge_cases_test | ) |
Definition at line 523 of file testEnumFlags.cxx.
| BOOST_AUTO_TEST_CASE | ( | Flags_error_recovery_test | ) |
Definition at line 362 of file testEnumFlags.cxx.
| BOOST_AUTO_TEST_CASE | ( | Flags_mixed_delimiter_validation_test | ) |
Definition at line 485 of file testEnumFlags.cxx.
| BOOST_AUTO_TEST_CASE | ( | Flags_operator_bool_test | ) |
Definition at line 626 of file testEnumFlags.cxx.
| BOOST_AUTO_TEST_CASE | ( | Flags_test | ) |
Definition at line 46 of file testEnumFlags.cxx.
| BOOST_AUTO_TEST_CASE | ( | Flags_whitespace_handling_test | ) |
Definition at line 406 of file testEnumFlags.cxx.