![]() |
Arene Base
Fundamental Utilities For Safety Critical C++
|
Test fixture for all type-parameterized inline_vector tests.
More...

Public Types | |
| using | T = typename Vector::value_type |
Static Public Attributes | |
| static constexpr std::size_t | capacity = Vector::capacity |
The base capacity to use for most inline_vector instantiations in the parameterized tests. | |
| static constexpr bool | constexpr_compatible |
| Whether or not the current type parameter is constexpr compatible for this test. | |
Protected Types | |
| template<typename U> | |
| using | non_throwing_input_iterator = input_iterator_with_configurable_noexcept<U, true> |
An input iterator pointing to any type which declares that it can not throw, used in some noexcept tests. | |
| template<typename ValueType> | |
| using | standard_capacity_vector = inline_vector<ValueType, capacity> |
An inline_vector with capacity using any given type; useful in tests making vectors of wrapper types. | |
| template<typename U> | |
| using | throwing_input_iterator = input_iterator_with_configurable_noexcept<U, false> |
An input iterator pointing to any type which declares that it could throw, used in some noexcept tests. | |
| template<std::size_t OtherCapacity> | |
| using | vector_with_capacity = inline_vector<T, OtherCapacity> |
An inline_vector with value_type=T using any given capacity; useful in tests doing assignment. | |
Static Protected Member Functions | |
| template<typename... U> | |
| static constexpr auto | construct (U &&... params) noexcept(noexcept(Vector(std::forward< U >(params)...))) -> Vector |
Construct a Vector from the passed parameters; allows calling as this->construct, which can be shorter. | |
| static constexpr auto | full_test_initializer_list () noexcept -> std::initializer_list< T > |
Return a std::initializer_list containing capacity user-parameterized test_value s. | |
| static constexpr auto | full_test_vector () noexcept(noexcept(test_vector(capacity))) -> Vector |
Return a Vector containing the test values [0,capacity) of T , parameterized by test suite users. | |
| static void | SetUpTestSuite () |
| template<std::size_t Size> | |
| static constexpr auto | test_initializer_list () noexcept -> std::initializer_list< T > |
Return a std::initializer_list containing user-parameterized test_value s. | |
| template<std::size_t... Indices> | |
| static constexpr auto | test_initializer_list (std::index_sequence< Indices... >) noexcept -> std::initializer_list< T > |
Return a std::initializer_list containing user-parameterized test_value s. | |
| static constexpr auto | test_value (std::size_t idx) noexcept(noexcept(::arene::base::testing::test_value< T >(idx))) -> |
Return the idx 'th test value of the current T , parameterized by test suite users. | |
| static constexpr auto | test_vector (std::size_t begin, std::size_t end) noexcept(noexcept(::arene::base::testing::test_vector< T, capacity >(begin, end))) -> Vector |
Return a Vector containing the test values [begin,end) of T , parameterized by test suite users. | |
| static constexpr auto | test_vector (std::size_t size) noexcept(noexcept(test_vector(0, size))) -> Vector |
Return a Vector containing the test values [0,size) of T , parameterized by test suite users. | |
| template<std::size_t N> | |
| static constexpr auto | unique_test_value () noexcept(noexcept(::arene::base::testing::unique_test_value< T, N >())) -> N >()) |
Return the N 'th test value of the current T , parameterized by test suite users. | |
Protected Attributes | |
| template<typename Vec, typename... Args> | |
| using | try_construct_result |
A helper template to get the type resulting from a try_construct call. | |
Test fixture for all type-parameterized inline_vector tests.
| T | The type parameter currently being used for tests; filled in by Google Test as TypeParam |
|
protected |
An input iterator pointing to any type which declares that it can not throw, used in some noexcept tests.
| U | The value type of the iterator |
|
protected |
An inline_vector with capacity using any given type; useful in tests making vectors of wrapper types.
| ValueType | The element type of this particular vector |
| using arene::base::testing::InlineVectorTest< Vector >::T = typename Vector::value_type |
|
protected |
An input iterator pointing to any type which declares that it could throw, used in some noexcept tests.
| U | The value type of the iterator |
|
protected |
An inline_vector with value_type=T using any given capacity; useful in tests doing assignment.
| OtherCapacity | The capacity of this particular vector |
|
inlinestaticconstexprprotectednoexcept |
Construct a Vector from the passed parameters; allows calling as this->construct, which can be shorter.
| U | The types of the arguments to the constructor |
| params | The parameters to the constructor |
|
inlinestaticconstexprprotectednoexcept |
Return a std::initializer_list containing capacity user-parameterized test_value s.
std::initializer_list<T> containing capacity entries
|
inlinestaticconstexprprotectednoexcept |
Return a Vector containing the test values [0,capacity) of T , parameterized by test suite users.
|
inlinestaticprotected |
|
inlinestaticconstexprprotectednoexcept |
Return a std::initializer_list containing user-parameterized test_value s.
| Size | The number of values in the std::initializer_list |
std::initializer_list<T> containing one test value per index
|
inlinestaticconstexprprotectednoexcept |
Return a std::initializer_list containing user-parameterized test_value s.
| Indices | A pack of indices, one for each test value in the initializer list |
std::initializer_list<T> containing one test value per index
|
inlinestaticconstexprprotectednoexcept |
|
inlinestaticconstexprprotectednoexcept |
Return a Vector containing the test values [begin,end) of T , parameterized by test suite users.
| begin | The index of the first test value to put into the test vector |
| end | The index after that of the last test value to put into the test vector |
|
inlinestaticconstexprprotectednoexcept |
Return a Vector containing the test values [0,size) of T , parameterized by test suite users.
| size | The number of test values to put into the test vector |
|
inlinestaticconstexprprotectednoexcept |
|
staticconstexpr |
The base capacity to use for most inline_vector instantiations in the parameterized tests.
|
staticconstexpr |
Whether or not the current type parameter is constexpr compatible for this test.
|
protected |
A helper template to get the type resulting from a try_construct call.
| Vec | An inline_vector type which we will try to construct |
| Args | The arguments with which we will try to construct Vec |