Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
testing::internal::TypedExpectation< F > Class Template Reference

#include <JETSCAPE/blob/main/external_packages/googletest/googlemock/include/gmock/gmock-spec-builders.h>

+ Inheritance diagram for testing::internal::TypedExpectation< F >:
+ Collaboration diagram for testing::internal::TypedExpectation< F >:

Public Types

typedef Function< F >
::ArgumentTuple 
ArgumentTuple
 
typedef Function< F >
::ArgumentMatcherTuple 
ArgumentMatcherTuple
 
typedef Function< F >::Result Result
 

Public Member Functions

 TypedExpectation (FunctionMockerBase< F > *owner, const char *a_file, int a_line, const string &a_source_text, const ArgumentMatcherTuple &m)
 
virtual ~TypedExpectation ()
 
TypedExpectationWith (const Matcher< const ArgumentTuple & > &m)
 
TypedExpectationTimes (const Cardinality &a_cardinality)
 
TypedExpectationTimes (int n)
 
TypedExpectationInSequence (const Sequence &s)
 
TypedExpectationInSequence (const Sequence &s1, const Sequence &s2)
 
TypedExpectationInSequence (const Sequence &s1, const Sequence &s2, const Sequence &s3)
 
TypedExpectationInSequence (const Sequence &s1, const Sequence &s2, const Sequence &s3, const Sequence &s4)
 
TypedExpectationInSequence (const Sequence &s1, const Sequence &s2, const Sequence &s3, const Sequence &s4, const Sequence &s5)
 
TypedExpectationAfter (const ExpectationSet &s)
 
TypedExpectationAfter (const ExpectationSet &s1, const ExpectationSet &s2)
 
TypedExpectationAfter (const ExpectationSet &s1, const ExpectationSet &s2, const ExpectationSet &s3)
 
TypedExpectationAfter (const ExpectationSet &s1, const ExpectationSet &s2, const ExpectationSet &s3, const ExpectationSet &s4)
 
TypedExpectationAfter (const ExpectationSet &s1, const ExpectationSet &s2, const ExpectationSet &s3, const ExpectationSet &s4, const ExpectationSet &s5)
 
TypedExpectationWillOnce (const Action< F > &action)
 
TypedExpectationWillRepeatedly (const Action< F > &action)
 
TypedExpectationRetiresOnSaturation ()
 
const ArgumentMatcherTuplematchers () const
 
const Matcher< const
ArgumentTuple & > & 
extra_matcher () const
 
const Action< F > & repeated_action () const
 
virtual void MaybeDescribeExtraMatcherTo (::std::ostream *os)
 
- Public Member Functions inherited from testing::internal::ExpectationBase
 ExpectationBase (const char *file, int line, const string &source_text)
 
virtual ~ExpectationBase ()
 
const char * file () const
 
int line () const
 
const char * source_text () const
 
const Cardinalitycardinality () const
 
void DescribeLocationTo (::std::ostream *os) const
 
void DescribeCallCountTo (::std::ostream *os) const GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex)
 

Private Member Functions

virtual Expectation GetHandle ()
 
bool Matches (const ArgumentTuple &args) const GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex)
 
bool ShouldHandleArguments (const ArgumentTuple &args) const GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex)
 
void ExplainMatchResultTo (const ArgumentTuple &args,::std::ostream *os) const GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex)
 
const Action< F > & GetCurrentAction (const FunctionMockerBase< F > *mocker, const ArgumentTuple &args) const GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex)
 
const Action< F > * GetActionForArguments (const FunctionMockerBase< F > *mocker, const ArgumentTuple &args,::std::ostream *what,::std::ostream *why) GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex)
 
 GTEST_DISALLOW_COPY_AND_ASSIGN_ (TypedExpectation)
 

Private Attributes

FunctionMockerBase< F > *const owner_
 
ArgumentMatcherTuple matchers_
 
Matcher< const ArgumentTuple & > extra_matcher_
 
Action< Frepeated_action_
 

Friends

template<typename Function >
class FunctionMockerBase
 

Additional Inherited Members

- Protected Types inherited from testing::internal::ExpectationBase
enum  Clause {
  kNone, kWith, kTimes, kInSequence,
  kAfter, kWillOnce, kWillRepeatedly, kRetiresOnSaturation
}
 
typedef std::vector< const void * > UntypedActions
 
- Protected Member Functions inherited from testing::internal::ExpectationBase
void AssertSpecProperty (bool property, const string &failure_message) const
 
void ExpectSpecProperty (bool property, const string &failure_message) const
 
void SpecifyCardinality (const Cardinality &cardinality)
 
bool cardinality_specified () const
 
void set_cardinality (const Cardinality &a_cardinality)
 
void RetireAllPreRequisites () GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex)
 
bool is_retired () const GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex)
 
void Retire () GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex)
 
bool IsSatisfied () const GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex)
 
bool IsSaturated () const GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex)
 
bool IsOverSaturated () const GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex)
 
bool AllPrerequisitesAreSatisfied () const GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex)
 
void FindUnsatisfiedPrerequisites (ExpectationSet *result) const GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex)
 
int call_count () const GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex)
 
void IncrementCallCount () GTEST_EXCLUSIVE_LOCK_REQUIRED_(g_gmock_mutex)
 
void CheckActionCountIfNotDone () const GTEST_LOCK_EXCLUDED_(mutex_)
 
void UntypedTimes (const Cardinality &a_cardinality)
 
 GTEST_DISALLOW_ASSIGN_ (ExpectationBase)
 
- Protected Attributes inherited from testing::internal::ExpectationBase
const char * file_
 
int line_
 
const string source_text_
 
bool cardinality_specified_
 
Cardinality cardinality_
 
ExpectationSet immediate_prerequisites_
 
int call_count_
 
bool retired_
 
UntypedActions untyped_actions_
 
bool extra_matcher_specified_
 
bool repeated_action_specified_
 
bool retires_on_saturation_
 
Clause last_clause_
 
bool action_count_checked_
 
Mutex mutex_
 

Detailed Description

template<typename F>
class testing::internal::TypedExpectation< F >

Definition at line 877 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 877 of file gmock-spec-builders.h

Member Typedef Documentation

Definition at line 880 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 880 of file gmock-spec-builders.h

Definition at line 879 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 879 of file gmock-spec-builders.h

template<typename F>
typedef Function<F>::Result testing::internal::TypedExpectation< F >::Result

Definition at line 881 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 881 of file gmock-spec-builders.h

Constructor & Destructor Documentation

template<typename F>
testing::internal::TypedExpectation< F >::TypedExpectation ( FunctionMockerBase< F > *  owner,
const char *  a_file,
int  a_line,
const string a_source_text,
const ArgumentMatcherTuple m 
)
inline

Definition at line 883 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 883 of file gmock-spec-builders.h

template<typename F>
virtual testing::internal::TypedExpectation< F >::~TypedExpectation ( )
inlinevirtual

Definition at line 896 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 896 of file gmock-spec-builders.h

References it.

Member Function Documentation

template<typename F>
TypedExpectation& testing::internal::TypedExpectation< F >::After ( const ExpectationSet s)
inline

Definition at line 964 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 964 of file gmock-spec-builders.h

References testing::ExpectationSet::begin(), testing::ExpectationSet::end(), and it.

Referenced by testing::internal::TypedExpectation< F >::After().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

template<typename F>
TypedExpectation& testing::internal::TypedExpectation< F >::After ( const ExpectationSet s1,
const ExpectationSet s2 
)
inline

Definition at line 976 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 976 of file gmock-spec-builders.h

References testing::internal::TypedExpectation< F >::After().

+ Here is the call graph for this function:

template<typename F>
TypedExpectation& testing::internal::TypedExpectation< F >::After ( const ExpectationSet s1,
const ExpectationSet s2,
const ExpectationSet s3 
)
inline

Definition at line 979 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 979 of file gmock-spec-builders.h

References testing::internal::TypedExpectation< F >::After().

+ Here is the call graph for this function:

template<typename F>
TypedExpectation& testing::internal::TypedExpectation< F >::After ( const ExpectationSet s1,
const ExpectationSet s2,
const ExpectationSet s3,
const ExpectationSet s4 
)
inline

Definition at line 983 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 983 of file gmock-spec-builders.h

References testing::internal::TypedExpectation< F >::After().

+ Here is the call graph for this function:

template<typename F>
TypedExpectation& testing::internal::TypedExpectation< F >::After ( const ExpectationSet s1,
const ExpectationSet s2,
const ExpectationSet s3,
const ExpectationSet s4,
const ExpectationSet s5 
)
inline

Definition at line 987 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 987 of file gmock-spec-builders.h

References testing::internal::TypedExpectation< F >::After().

+ Here is the call graph for this function:

template<typename F>
void testing::internal::TypedExpectation< F >::ExplainMatchResultTo ( const ArgumentTuple args,
::std::ostream *  os 
) const
inlineprivate

Definition at line 1106 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 1106 of file gmock-spec-builders.h

References check_smearing_config::args, testing::ExpectationSet::begin(), testing::ExpectationSet::end(), testing::internal::ExplainMatchFailureTupleTo(), i, it, testing::Matches(), os, testing::internal::PrintIfNotEmpty(), testing::StringMatchResultListener::str(), and testing::internal::TupleMatches().

Referenced by testing::internal::FunctionMockerBase< R(A1, A2)>::PrintTriedExpectationsLocked().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

template<typename F>
const Matcher<const ArgumentTuple&>& testing::internal::TypedExpectation< F >::extra_matcher ( ) const
inline

Definition at line 1053 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 1053 of file gmock-spec-builders.h

template<typename F>
const Action<F>* testing::internal::TypedExpectation< F >::GetActionForArguments ( const FunctionMockerBase< F > *  mocker,
const ArgumentTuple args,
::std::ostream *  what,
::std::ostream *  why 
)
inlineprivate

Definition at line 1188 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 1188 of file gmock-spec-builders.h

References check_smearing_config::args.

Referenced by testing::internal::FunctionMockerBase< R(A1, A2)>::UntypedFindMatchingExpectation().

+ Here is the caller graph for this function:

template<typename F>
const Action<F>& testing::internal::TypedExpectation< F >::GetCurrentAction ( const FunctionMockerBase< F > *  mocker,
const ArgumentTuple args 
) const
inlineprivate

Definition at line 1151 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 1151 of file gmock-spec-builders.h

References check_smearing_config::args, testing::internal::Assert(), test_fpe::count, testing::internal::kWarning, and testing::internal::Log().

+ Here is the call graph for this function:

template<typename F>
virtual Expectation testing::internal::TypedExpectation< F >::GetHandle ( )
inlineprivatevirtual

Implements testing::internal::ExpectationBase.

Definition at line 1076 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 1076 of file gmock-spec-builders.h

template<typename F>
testing::internal::TypedExpectation< F >::GTEST_DISALLOW_COPY_AND_ASSIGN_ ( TypedExpectation< F )
private
template<typename F>
TypedExpectation& testing::internal::TypedExpectation< F >::InSequence ( const Sequence s)
inline

Definition at line 936 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 936 of file gmock-spec-builders.h

References testing::Sequence::AddExpectation().

+ Here is the call graph for this function:

template<typename F>
TypedExpectation& testing::internal::TypedExpectation< F >::InSequence ( const Sequence s1,
const Sequence s2 
)
inline

Definition at line 946 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 946 of file gmock-spec-builders.h

References testing::InSequence::InSequence().

+ Here is the call graph for this function:

template<typename F>
TypedExpectation& testing::internal::TypedExpectation< F >::InSequence ( const Sequence s1,
const Sequence s2,
const Sequence s3 
)
inline

Definition at line 949 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 949 of file gmock-spec-builders.h

References testing::InSequence::InSequence().

+ Here is the call graph for this function:

template<typename F>
TypedExpectation& testing::internal::TypedExpectation< F >::InSequence ( const Sequence s1,
const Sequence s2,
const Sequence s3,
const Sequence s4 
)
inline

Definition at line 953 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 953 of file gmock-spec-builders.h

References testing::InSequence::InSequence().

+ Here is the call graph for this function:

template<typename F>
TypedExpectation& testing::internal::TypedExpectation< F >::InSequence ( const Sequence s1,
const Sequence s2,
const Sequence s3,
const Sequence s4,
const Sequence s5 
)
inline

Definition at line 957 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 957 of file gmock-spec-builders.h

References testing::InSequence::InSequence().

+ Here is the call graph for this function:

template<typename F>
const ArgumentMatcherTuple& testing::internal::TypedExpectation< F >::matchers ( ) const
inline

Definition at line 1048 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 1048 of file gmock-spec-builders.h

template<typename F>
bool testing::internal::TypedExpectation< F >::Matches ( const ArgumentTuple args) const
inlineprivate

Definition at line 1085 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 1085 of file gmock-spec-builders.h

References check_smearing_config::args, and testing::internal::TupleMatches().

+ Here is the call graph for this function:

template<typename F>
virtual void testing::internal::TypedExpectation< F >::MaybeDescribeExtraMatcherTo ( ::std::ostream *  os)
inlinevirtual

Implements testing::internal::ExpectationBase.

Definition at line 1062 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 1062 of file gmock-spec-builders.h

template<typename F>
const Action<F>& testing::internal::TypedExpectation< F >::repeated_action ( ) const
inline

Definition at line 1058 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 1058 of file gmock-spec-builders.h

template<typename F>
TypedExpectation& testing::internal::TypedExpectation< F >::RetiresOnSaturation ( )
inline

Definition at line 1033 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 1033 of file gmock-spec-builders.h

template<typename F>
bool testing::internal::TypedExpectation< F >::ShouldHandleArguments ( const ArgumentTuple args) const
inlineprivate

Definition at line 1092 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 1092 of file gmock-spec-builders.h

References check_smearing_config::args, and testing::Matches().

Referenced by testing::internal::FunctionMockerBase< R(A1, A2)>::FindMatchingExpectationLocked().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

template<typename F>
TypedExpectation& testing::internal::TypedExpectation< F >::Times ( const Cardinality a_cardinality)
inline

Definition at line 925 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 925 of file gmock-spec-builders.h

References testing::internal::ExpectationBase::UntypedTimes().

+ Here is the call graph for this function:

template<typename F>
TypedExpectation& testing::internal::TypedExpectation< F >::Times ( int  n)
inline

Definition at line 931 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 931 of file gmock-spec-builders.h

References testing::Exactly().

+ Here is the call graph for this function:

template<typename F>
TypedExpectation& testing::internal::TypedExpectation< F >::WillOnce ( const Action< F > &  action)
inline

Definition at line 994 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 994 of file gmock-spec-builders.h

References testing::Exactly().

+ Here is the call graph for this function:

template<typename F>
TypedExpectation& testing::internal::TypedExpectation< F >::WillRepeatedly ( const Action< F > &  action)
inline

Definition at line 1008 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 1008 of file gmock-spec-builders.h

References parse_cmake_options::action, and testing::AtLeast().

+ Here is the call graph for this function:

template<typename F>
TypedExpectation& testing::internal::TypedExpectation< F >::With ( const Matcher< const ArgumentTuple & > &  m)
inline

Definition at line 907 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 907 of file gmock-spec-builders.h

References Acts::UnitConstants::m.

Friends And Related Function Documentation

template<typename F>
template<typename Function >
friend class FunctionMockerBase
friend

Definition at line 1072 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 1072 of file gmock-spec-builders.h

Member Data Documentation

template<typename F>
Matcher<const ArgumentTuple&> testing::internal::TypedExpectation< F >::extra_matcher_
private

Definition at line 1224 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 1224 of file gmock-spec-builders.h

template<typename F>
ArgumentMatcherTuple testing::internal::TypedExpectation< F >::matchers_
private

Definition at line 1223 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 1223 of file gmock-spec-builders.h

template<typename F>
FunctionMockerBase<F>* const testing::internal::TypedExpectation< F >::owner_
private

Definition at line 1222 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 1222 of file gmock-spec-builders.h

template<typename F>
Action<F> testing::internal::TypedExpectation< F >::repeated_action_
private

Definition at line 1225 of file gmock-spec-builders.h.

View newest version in sPHENIX GitHub at line 1225 of file gmock-spec-builders.h


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