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

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. | |
| using | standard_storage_type = storage_type<capacity> |
| The type of the storage array for this type with the default capacity. | |
| template<std::size_t Capacity> | |
| using | storage_type = arene::base::array<arene::base::byte, Capacity * sizeof(T)> |
| The type of the storage array for this type with the specified capacity. | |
| 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. | |
| using | vector = external_vector<T> |
| A standard vector with the correct type, used in most test cases. | |
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 | test_external_vector (arene::base::span< arene::base::byte > storage) noexcept(std::is_nothrow_move_constructible< T >::value) -> vector |
Return a vector containing the test values [0,capacity) of T , parameterized by test suite users. | |
| static constexpr auto | test_external_vector (arene::base::span< arene::base::byte > storage, std::size_t begin, std::size_t end) noexcept(std::is_nothrow_move_constructible< T >::value) -> vector |
Return a vector containing the test values [begin,end) of T , parameterized by test suite users. | |
| static constexpr auto | test_external_vector (arene::base::span< arene::base::byte > storage, std::size_t size) noexcept(std::is_nothrow_move_constructible< T >::value) -> vector |
Return a vector containing the test values [0,size) of T , parameterized by test suite users. | |
| static constexpr auto | test_value (std::size_t idx) noexcept(std::is_nothrow_move_constructible< T >::value) -> T |
Return the idx 'th test value of the current T , parameterized by test suite users. | |
Protected Attributes | |
| standard_storage_type | standard_storage {} |
| An instance of the default storage type to use as backing for a default capacity vector. | |
| template<typename Vector, typename... Args> | |
| using | try_construct_result |
A helper template to get the type resulting from a try_construct call. | |
Static Protected Attributes | |
| static constexpr std::size_t | capacity = 25 |
The base capacity to use for most external_vector instantiations in the parameterized tests. | |
Test fixture for all type-parameterized external_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 |
The type of the storage array for this type with the default capacity.
|
protected |
The type of the storage array for this type with the specified capacity.
| Capacity | The capacity of the expected container |
|
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 |
A standard vector with the correct type, used in most test cases.
|
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 vector containing the test values [0,capacity) of T , parameterized by test suite users.
| storage | The storage space to use for the values stored in the vector |
|
inlinestaticconstexprprotectednoexcept |
Return a vector containing the test values [begin,end) of T , parameterized by test suite users.
| storage | The storage space to use for the values stored in the vector |
| 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.
| storage | The storage space to use for the values stored in the vector |
| size | The number of test values to put into the test vector |
|
inlinestaticconstexprprotectednoexcept |
Return the idx 'th test value of the current T , parameterized by test suite users.
| idx | The index of the test value to get |
idx 'th test value of the current T
|
staticconstexprprotected |
The base capacity to use for most external_vector instantiations in the parameterized tests.
|
protected |
An instance of the default storage type to use as backing for a default capacity vector.
|
protected |
A helper template to get the type resulting from a try_construct call.
| Vector | An external_vector type which we will try to construct |
| Args | The arguments with which we will try to construct Vector |