Qt-Mocks 0.8.0-alpha.9
Mocking library using Qt Test inspired by Google Test
 
Loading...
Searching...
No Matches
qt_mocks::internal Namespace Reference

Classes

class  Expectation
 
class  ExpectationBuilder
 This is used to build and manage the expectations for mocked objects.
 
class  ExpectationBuilder< ReturnType, void >
 
class  ExpectationBuilder< void, void >
 
class  ExpectationQueue
 
struct  ExpectationQueueProcessor
 
struct  ExpectationQueueProcessor< ExpectationType, void >
 
struct  HasStreamInsertion
 
struct  HasStreamInsertion< T, decltype(operator<<(OstreamRef{}, std::declval< T >()))>
 
struct  Mock
 
struct  Mock< ReturnType, void >
 
class  MockedExpectation
 
struct  OstreamRef
 

Functions

template<typename ValueType, std::size_t Index = 0, typename ... MatcherTypes>
std::enable_if_t< Index==sizeof...(MatcherTypes), bool > compareAll (const ValueType &, const std::tuple< MatcherTypes... > &)
 
template<typename ValueType, std::size_t Index = 0, typename ... MatcherTypes>
std::enable_if_t<(Index< sizeof...(MatcherTypes)), bool > compareAll (const ValueType &actual, const std::tuple< MatcherTypes... > &matchers)
 
template<typename ValueType, std::size_t Index = 0, typename ... MatcherTypes>
std::enable_if_t< Index==sizeof...(MatcherTypes), bool > compareAny (const ValueType &, const std::tuple< MatcherTypes... > &)
 
template<typename ValueType, std::size_t Index = 0, typename ... MatcherTypes>
std::enable_if_t<(Index< sizeof...(MatcherTypes)), bool > compareAny (const ValueType &actual, const std::tuple< MatcherTypes... > &matchers)
 
template<typename ValueType, std::size_t Index = 0, typename ... MatcherTypes>
std::enable_if_t< Index==sizeof...(MatcherTypes), ::QString > descriptionAll (::QTextStream &ots, const ValueType &, const std::tuple< MatcherTypes... > &)
 
template<typename ValueType, std::size_t Index = 0, typename ... MatcherTypes>
std::enable_if_t<(Index< sizeof...(MatcherTypes)), ::QString > descriptionAll (::QTextStream &ots, const ValueType &actual, const std::tuple< MatcherTypes... > &matchers)
 
template<typename ValueType, std::size_t Index = 0, typename ... MatcherTypes>
std::enable_if_t< Index==sizeof...(MatcherTypes), ::QString > descriptionAny (::QTextStream &ots, const ValueType &, const std::tuple< MatcherTypes... > &)
 
template<typename ValueType, std::size_t Index = 0, typename ... MatcherTypes>
std::enable_if_t<(Index< sizeof...(MatcherTypes)), ::QString > descriptionAny (::QTextStream &ots, const ValueType &actual, const std::tuple< MatcherTypes... > &matchers)
 
template<typename ReturnType, typename ... ParameterTypes>
ReturnType invokeImplementation (Mock< ReturnType, ParameterTypes ... > &mock)
 
template<typename IteratorType>
void outputStream (::QTextStream &stream, const IteratorType &begin, const IteratorType &end)
 
template<typename ReturnType, typename ExpectationType, typename ... ParameterTypes>
ReturnType process (ExpectationQueue &queue, ExpectationType &expectation, ParameterTypes ... passedInArgs)
 
QT_MOCKS_EXPORT::QString toString (const ExpectedAction action)
 

Function Documentation

◆ compareAll() [1/2]

template<typename ValueType, std::size_t Index = 0, typename ... MatcherTypes>
std::enable_if_t< Index==sizeof...(MatcherTypes), bool > qt_mocks::internal::compareAll ( const ValueType & ,
const std::tuple< MatcherTypes... > &  )
nodiscard
Here is the call graph for this function:
Here is the caller graph for this function:

◆ compareAll() [2/2]

template<typename ValueType, std::size_t Index = 0, typename ... MatcherTypes>
std::enable_if_t<(Index< sizeof...(MatcherTypes)), bool > qt_mocks::internal::compareAll ( const ValueType & actual,
const std::tuple< MatcherTypes... > & matchers )
nodiscard
Here is the call graph for this function:

◆ compareAny() [1/2]

template<typename ValueType, std::size_t Index = 0, typename ... MatcherTypes>
std::enable_if_t< Index==sizeof...(MatcherTypes), bool > qt_mocks::internal::compareAny ( const ValueType & ,
const std::tuple< MatcherTypes... > &  )
nodiscard
Here is the call graph for this function:
Here is the caller graph for this function:

◆ compareAny() [2/2]

template<typename ValueType, std::size_t Index = 0, typename ... MatcherTypes>
std::enable_if_t<(Index< sizeof...(MatcherTypes)), bool > qt_mocks::internal::compareAny ( const ValueType & actual,
const std::tuple< MatcherTypes... > & matchers )
nodiscard
Here is the call graph for this function:

◆ descriptionAll() [1/2]

template<typename ValueType, std::size_t Index = 0, typename ... MatcherTypes>
std::enable_if_t< Index==sizeof...(MatcherTypes), ::QString > qt_mocks::internal::descriptionAll ( ::QTextStream & ots,
const ValueType & ,
const std::tuple< MatcherTypes... > &  )
nodiscard
Here is the call graph for this function:
Here is the caller graph for this function:

◆ descriptionAll() [2/2]

template<typename ValueType, std::size_t Index = 0, typename ... MatcherTypes>
std::enable_if_t<(Index< sizeof...(MatcherTypes)), ::QString > qt_mocks::internal::descriptionAll ( ::QTextStream & ots,
const ValueType & actual,
const std::tuple< MatcherTypes... > & matchers )
nodiscard
Here is the call graph for this function:

◆ descriptionAny() [1/2]

template<typename ValueType, std::size_t Index = 0, typename ... MatcherTypes>
std::enable_if_t< Index==sizeof...(MatcherTypes), ::QString > qt_mocks::internal::descriptionAny ( ::QTextStream & ots,
const ValueType & ,
const std::tuple< MatcherTypes... > &  )
nodiscard
Here is the call graph for this function:
Here is the caller graph for this function:

◆ descriptionAny() [2/2]

template<typename ValueType, std::size_t Index = 0, typename ... MatcherTypes>
std::enable_if_t<(Index< sizeof...(MatcherTypes)), ::QString > qt_mocks::internal::descriptionAny ( ::QTextStream & ots,
const ValueType & actual,
const std::tuple< MatcherTypes... > & matchers )
nodiscard
Here is the call graph for this function:

◆ invokeImplementation()

template<typename ReturnType, typename ... ParameterTypes>
ReturnType qt_mocks::internal::invokeImplementation ( Mock< ReturnType, ParameterTypes ... > & mock)

◆ outputStream()

template<typename IteratorType>
void qt_mocks::internal::outputStream ( ::QTextStream & stream,
const IteratorType & begin,
const IteratorType & end )

◆ process()

template<typename ReturnType, typename ExpectationType, typename ... ParameterTypes>
ReturnType qt_mocks::internal::process ( ExpectationQueue & queue,
ExpectationType & expectation,
ParameterTypes ... passedInArgs )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ toString()

QT_MOCKS_EXPORT::QString qt_mocks::internal::toString ( const ExpectedAction action)
Here is the call graph for this function:
Here is the caller graph for this function: