Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
testing::exceptions_internal::ExceptionSafetyTestBuilder< Factory, Operation, Contracts > Class Template Reference

#include <exception_safety_testing.h>

Public Member Functions

template<typename NewOperation , typename = EnableIfTestable<sizeof...(Contracts), Factory, NewOperation>>
testing::AssertionResult Test (const NewOperation &new_operation) const
 
template<typename LazyOperation = Operation, typename = EnableIfTestable<sizeof...(Contracts), Factory, LazyOperation>>
testing::AssertionResult Test () const
 
template<typename... MoreContracts>
ExceptionSafetyTestBuilder< Factory, Operation, Contracts..., absl::decay_t< MoreContracts >... > WithContracts (const MoreContracts &... more_contracts) const
 
template<typename NewFactory >
ExceptionSafetyTestBuilder< absl::decay_t< NewFactory >, Operation, Contracts... > WithFactory (const NewFactory &new_factory) const
 
template<typename T >
ExceptionSafetyTestBuilder< DefaultFactory< T >, Operation, Contracts... > WithInitialValue (const T &t) const
 
template<typename NewOperation >
ExceptionSafetyTestBuilder< Factory, absl::decay_t< NewOperation >, Contracts... > WithOperation (const NewOperation &new_operation) const
 

Private Member Functions

 ExceptionSafetyTestBuilder ()
 
 ExceptionSafetyTestBuilder (const Factory &f, const Operation &o, const std::tuple< Contracts... > &i)
 
template<typename SelectedOperation , size_t... Indices>
testing::AssertionResult TestImpl (SelectedOperation selected_operation, absl::index_sequence< Indices... >) const
 

Private Attributes

std::tuple< Contracts... > contracts_
 
Factory factory_
 
Operation operation_
 

Friends

template<typename , typename , typename... >
class ExceptionSafetyTestBuilder
 
ExceptionSafetyTestBuilder testing::MakeExceptionSafetyTester ()
 

Detailed Description

template<typename Factory, typename Operation, typename... Contracts>
class testing::exceptions_internal::ExceptionSafetyTestBuilder< Factory, Operation, Contracts >

Definition at line 841 of file exception_safety_testing.h.

Constructor & Destructor Documentation

◆ ExceptionSafetyTestBuilder() [1/2]

template<typename Factory, typename Operation, typename... Contracts>
testing::exceptions_internal::ExceptionSafetyTestBuilder< Factory, Operation, Contracts >::ExceptionSafetyTestBuilder ( )
inlineprivate

Definition at line 1073 of file exception_safety_testing.h.

◆ ExceptionSafetyTestBuilder() [2/2]

template<typename Factory, typename Operation, typename... Contracts>
testing::exceptions_internal::ExceptionSafetyTestBuilder< Factory, Operation, Contracts >::ExceptionSafetyTestBuilder ( const Factory &  f,
const Operation &  o,
const std::tuple< Contracts... > &  i 
)
inlineprivate

Definition at line 1075 of file exception_safety_testing.h.

Member Function Documentation

◆ Test() [1/2]

template<typename Factory, typename Operation, typename... Contracts>
template<typename NewOperation , typename = EnableIfTestable<sizeof...(Contracts), Factory, NewOperation>>
testing::AssertionResult testing::exceptions_internal::ExceptionSafetyTestBuilder< Factory, Operation, Contracts >::Test ( const NewOperation &  new_operation) const
inline

Definition at line 1044 of file exception_safety_testing.h.

◆ Test() [2/2]

template<typename Factory, typename Operation, typename... Contracts>
template<typename LazyOperation = Operation, typename = EnableIfTestable<sizeof...(Contracts), Factory, LazyOperation>>
testing::AssertionResult testing::exceptions_internal::ExceptionSafetyTestBuilder< Factory, Operation, Contracts >::Test ( ) const
inline

Definition at line 1063 of file exception_safety_testing.h.

◆ TestImpl()

template<typename Factory, typename Operation, typename... Contracts>
template<typename SelectedOperation , size_t... Indices>
testing::AssertionResult testing::exceptions_internal::ExceptionSafetyTestBuilder< Factory, Operation, Contracts >::TestImpl ( SelectedOperation  selected_operation,
absl::index_sequence< Indices... >   
) const
inlineprivate

Definition at line 1080 of file exception_safety_testing.h.

◆ WithContracts()

template<typename Factory, typename Operation, typename... Contracts>
template<typename... MoreContracts>
ExceptionSafetyTestBuilder<Factory, Operation, Contracts..., absl::decay_t<MoreContracts>...> testing::exceptions_internal::ExceptionSafetyTestBuilder< Factory, Operation, Contracts >::WithContracts ( const MoreContracts &...  more_contracts) const
inline

Definition at line 1018 of file exception_safety_testing.h.

◆ WithFactory()

template<typename Factory, typename Operation, typename... Contracts>
template<typename NewFactory >
ExceptionSafetyTestBuilder<absl::decay_t<NewFactory>, Operation, Contracts...> testing::exceptions_internal::ExceptionSafetyTestBuilder< Factory, Operation, Contracts >::WithFactory ( const NewFactory &  new_factory) const
inline

Definition at line 987 of file exception_safety_testing.h.

◆ WithInitialValue()

template<typename Factory, typename Operation, typename... Contracts>
template<typename T >
ExceptionSafetyTestBuilder<DefaultFactory<T>, Operation, Contracts...> testing::exceptions_internal::ExceptionSafetyTestBuilder< Factory, Operation, Contracts >::WithInitialValue ( const T &  t) const
inline

Definition at line 974 of file exception_safety_testing.h.

◆ WithOperation()

template<typename Factory, typename Operation, typename... Contracts>
template<typename NewOperation >
ExceptionSafetyTestBuilder<Factory, absl::decay_t<NewOperation>, Contracts...> testing::exceptions_internal::ExceptionSafetyTestBuilder< Factory, Operation, Contracts >::WithOperation ( const NewOperation &  new_operation) const
inline

Definition at line 998 of file exception_safety_testing.h.

Friends And Related Function Documentation

◆ ExceptionSafetyTestBuilder

template<typename Factory, typename Operation, typename... Contracts>
template<typename , typename , typename... >
friend class ExceptionSafetyTestBuilder
friend

Definition at line 1069 of file exception_safety_testing.h.

◆ testing::MakeExceptionSafetyTester

template<typename Factory, typename Operation, typename... Contracts>
ExceptionSafetyTestBuilder testing::MakeExceptionSafetyTester ( )
friend

Member Data Documentation

◆ contracts_

template<typename Factory, typename Operation, typename... Contracts>
std::tuple<Contracts...> testing::exceptions_internal::ExceptionSafetyTestBuilder< Factory, Operation, Contracts >::contracts_
private

Definition at line 1089 of file exception_safety_testing.h.

◆ factory_

template<typename Factory, typename Operation, typename... Contracts>
Factory testing::exceptions_internal::ExceptionSafetyTestBuilder< Factory, Operation, Contracts >::factory_
private

Definition at line 1087 of file exception_safety_testing.h.

◆ operation_

template<typename Factory, typename Operation, typename... Contracts>
Operation testing::exceptions_internal::ExceptionSafetyTestBuilder< Factory, Operation, Contracts >::operation_
private

Definition at line 1088 of file exception_safety_testing.h.


The documentation for this class was generated from the following file:


abseil_cpp
Author(s):
autogenerated on Mon Feb 28 2022 21:31:23