Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
testing::exceptions_internal::ExceptionSafetyTest< T > Class Template Reference

#include <exception_safety_testing.h>

Public Member Functions

template<typename... Contracts>
 ExceptionSafetyTest (const Factory &f, const Operation &op, const Contracts &... contracts)
 
AssertionResult Test () const
 

Private Types

using Contract = std::function< AssertionResult(T *)>
 
using Factory = std::function< std::unique_ptr< T >()>
 
using Operation = std::function< void(T *)>
 

Private Member Functions

template<typename ContractFn >
Contract WrapContract (const ContractFn &contract)
 
Contract WrapContract (StrongGuaranteeTagType)
 

Private Attributes

std::vector< Contractcontracts_
 
Factory factory_
 
Operation operation_
 

Detailed Description

template<typename T>
class testing::exceptions_internal::ExceptionSafetyTest< T >

Definition at line 877 of file exception_safety_testing.h.

Member Typedef Documentation

◆ Contract

template<typename T>
using testing::exceptions_internal::ExceptionSafetyTest< T >::Contract = std::function<AssertionResult(T*)>
private

Definition at line 880 of file exception_safety_testing.h.

◆ Factory

template<typename T>
using testing::exceptions_internal::ExceptionSafetyTest< T >::Factory = std::function<std::unique_ptr<T>()>
private

Definition at line 878 of file exception_safety_testing.h.

◆ Operation

template<typename T>
using testing::exceptions_internal::ExceptionSafetyTest< T >::Operation = std::function<void(T*)>
private

Definition at line 879 of file exception_safety_testing.h.

Constructor & Destructor Documentation

◆ ExceptionSafetyTest()

template<typename T>
template<typename... Contracts>
testing::exceptions_internal::ExceptionSafetyTest< T >::ExceptionSafetyTest ( const Factory f,
const Operation op,
const Contracts &...  contracts 
)
inlineexplicit

Definition at line 884 of file exception_safety_testing.h.

Member Function Documentation

◆ Test()

template<typename T>
AssertionResult testing::exceptions_internal::ExceptionSafetyTest< T >::Test ( ) const
inline

Definition at line 888 of file exception_safety_testing.h.

◆ WrapContract() [1/2]

template<typename T>
template<typename ContractFn >
Contract testing::exceptions_internal::ExceptionSafetyTest< T >::WrapContract ( const ContractFn &  contract)
inlineprivate

Definition at line 913 of file exception_safety_testing.h.

◆ WrapContract() [2/2]

template<typename T>
Contract testing::exceptions_internal::ExceptionSafetyTest< T >::WrapContract ( StrongGuaranteeTagType  )
inlineprivate

Definition at line 917 of file exception_safety_testing.h.

Member Data Documentation

◆ contracts_

template<typename T>
std::vector<Contract> testing::exceptions_internal::ExceptionSafetyTest< T >::contracts_
private

Definition at line 923 of file exception_safety_testing.h.

◆ factory_

template<typename T>
Factory testing::exceptions_internal::ExceptionSafetyTest< T >::factory_
private

Definition at line 921 of file exception_safety_testing.h.

◆ operation_

template<typename T>
Operation testing::exceptions_internal::ExceptionSafetyTest< T >::operation_
private

Definition at line 922 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