mockpp Namespace Reference

Namespace for project "Mock Objects for C++". More...

Classes

class  AbstractExpectation
 Base class for all expectations. More...
class  AbstractExpectationCollection
 Base class for expectation collections. More...
class  NoParameter
 Helper class to distinguish present from missing parameters. More...
class  CountIfUsed
 Helper class to count actual parameters. More...
class  CountIfUsed< NoParameter >
 Helper class to disable counting of non-parameters. More...
class  CountParameters
 Helper class to sum actual parameters. More...
class  Expectation
 An Expectation is an object that we set up at the beginning of a unit test to expect certain things to happen to it. More...
class  ExpectationBoundary
 A class to verify that an actual value lies between two boundary values. More...
class  ExpectationConglomeration
 A class to verify conglomerations of expectations: each expected object must occur at least once. More...
class  ExpectationCounter
 A class to verify the expected count of an event. More...
class  ExpectationList
 A class to verify lists of expectations, one after the other as they occur. More...
class  ExpectationMap
 A class to verify maps of expectations: each expected object must occur at least once. More...
class  ExpectationSegment
 A class to verify the occurence of a substring. More...
class  ExpectationSet
 A class to verify sets of expectations: each expected object must occur at least once. More...
class  ExpectationValue
 A class to verify the equality of expected and actual value. More...
class  MixedMockObject
 A MockObject that merges all the advanced mock objects. More...
class  MockObject
 Base class for setting up mock objcts that are able to emulate a real world object. More...
class  MockTimeServer
 Mock object to return defined time points. More...
class  ReturnObjectList
 This class allows a list of objects to be setup which can be used whilst.The list is check to make sure that all the object in it are used and that none are left over at the end of a test. More...
class  SelfDescribing
 An object that can describe itself. More...
class  Throwable
 A virtual base class to handle throwable objects. More...
class  ThrowableWrapper
 A helper template to wrap a throwable object in a uniform fashion. More...
class  ThrowableItem
 A throwable object. More...
class  ThrowableList
 A list of throwable objects. More...
class  TrackingCounterBase
 A base class to keep track of occurrences. More...
class  TrackingCounterMaster
 The master counter from which clients obtain the current occurence count. More...
class  TrackingCounterClient
 The client counter to track occurrences based on a shared counter. More...
class  Verifiable
 A Verifiable is an object that can confirm at the end of a unit test that the correct behaviour has occurred. More...
class  VerifiableList
 A collection of verifiable objects which are verify()ed together. More...
class  AssertionFailedError
 Thrown when an assertion failed. More...
class  Exception
 Base class for all mockpp exceptions. More...
class  AutoPointer
 Implementation of an auto-pointer class. More...
class  NotImplementedException
 Signal not-yet implemented methods. More...
class  CallStub
 Always call some functor. More...
class  CustomStub
 A stub to implement application-specific stubs. More...
class  DefaultResultStub
 A stub returning the default value of the return type. More...
class  RandomStub
 Return a random value. More...
class  ReturnAndCallStub
 Always return the same specified value and call some functor. More...
class  ReturnAndTriggerStub1
 Always return the same specified value and trigger some contraint. More...
class  ReturnAndTriggerStub2
 Always return the same specified value and trigger some contraint. More...
class  ReturnAndTriggerStub3
 Always return the same specified value and trigger some contraint. More...
class  ReturnAndTriggerStub4
 Always return the same specified value and trigger some contraint. More...
class  ReturnAndTriggerStub5
 Always return the same specified value and trigger some contraint. More...
class  ReturnAndTriggerStub6
 Always return the same specified value and trigger some contraint. More...
class  ReturnObjectListStub
 Stub returning a list of defined values. More...
class  ReturnStub
 Always return the same specified value. More...
class  Stub
class  StubHolder
 Proxy class to conveniently move Stubs into Stub related methods. More...
class  StubSequence
 Use one stub after the other from a sequence. More...
class  TestFailureStub
 Stub that always fails upon invocation. More...
class  ThrowStubBase
 Base for stubs throwing exceptions. More...
class  ThrowStub
 A stub throwing exceptions. More...
class  ThrowStub< void >
 A stub throwing exceptions. More...
class  TriggerStub1
 Trigger some contraint. More...
class  TriggerStub2
 Trigger some contraint. More...
class  TriggerStub3
 Trigger some contraint. More...
class  TriggerStub4
 Trigger some contraint. More...
class  TriggerStub5
 Trigger some contraint. More...
class  TriggerStub6
 Trigger some contraint. More...
class  TypelessStub
 An object that stubs the behaviour of an invoked method invocation on behalf of an object. More...
class  TypelessStubAdapterBase
 Base of adapters for the "translation" to typeless stub objects. More...
class  TypelessStubAdapter
 Adapter for the "translation" to typeless stub objects. More...
class  TypelessStubAdapter< void, I >
 Partial specialisation for base of adapters for the "translation" to typeless void stub objects. More...
class  TypelessStubSequence
 Use one stub after the other from a sequence. More...
class  VoidStub
 A stub for void methods. More...
class  ArgumentsMatchBuilder0
 Build a matcher for an invocation with no arguments. More...
class  ArgumentsMatchBuilder1
 Build a matcher for an invocation with 1 argument. More...
class  ArgumentsMatchBuilder2
 Build a matcher for an invocation with 2 argument. More...
class  ArgumentsMatchBuilder3
 Build a matcher for an invocation with 3 argument. More...
class  ArgumentsMatchBuilder4
 Build a matcher for an invocation with 4 argument. More...
class  ArgumentsMatchBuilder5
 Build a matcher for an invocation with 5 argument. More...
class  ArgumentsMatchBuilder6
 Build a matcher for an invocation with 6 argument. More...
class  BuilderNamespace
 Store the objects needed to build mock objects. More...
class  IdentityBuilder
 Builder class for identity related purposes. More...
class  InvocationMockerBuilder
 Builder class for invocation related purposes. More...
class  MatchBuilderAdapterBase
 Base for a helper class for convenient handling of match builders. More...
class  MatchBuilder
 Builder class for matcher related purposes. More...
class  MatchBuilderAdapter
 A helper class for convenient handling of match builders. More...
class  StubBuilder
 Builder class for stub related purposes. More...
class  StubBuilder< void, I >
 Partial specialisation for builder class for void stub related purposes. More...
class  And
 Calculates the logical conjunction of two constraints. More...
class  Constraint
class  ConstraintHolder
 Proxy class to conveniently move constraints into constraint sets. More...
class  ConstraintList
 A class to verify lists of constraints, one after the other as they occur. More...
class  ConstraintSet0
 A set of constraints for a method without arguments. More...
class  ConstraintSet1
 A set of constraints for a method with 1 arguments. More...
class  ConstraintSet2
 A set of constraints for a method with 2 arguments. More...
class  ConstraintSet3
 A set of constraints for a method with 3 arguments. More...
class  ConstraintSet4
 A set of constraints for a method with 4 arguments. More...
class  ConstraintSet5
 A set of constraints for a method with 5 arguments. More...
class  ConstraintSet6
 A set of constraints for a method with 6 arguments. More...
class  IsAnything
 A constraint that always returns true. More...
class  IsCloseTo
 Is the value of a number equal to a value within some range of acceptable deviation? More...
class  IsEqual
 Is the value equal to another value, as tested by the invoked method? Basically the same as IsSame which compares by reference and a specializable comparison template. More...
class  IsGreaterOrEqual
 Is the value greater or equal than another value? More...
class  IsGreaterThan
 Is the value greater than another value? More...
class  IsInstanceOf
 Tests whether the value is derived from the given class. More...
class  IsLessOrEqual
 Is the value less or equal than another value? More...
class  IsLessThan
 Is the value less than another value? More...
class  IsNot
 Calculates the logical negation of a constraint. More...
class  IsNothing
 A constraint which is never true. More...
class  IsSame
 Is the value the same object as another value? Basically the same as IsEqual which compares with a value. More...
class  Or
 Calculates the logical disjunction of two constraints. More...
class  OutBound
 Passes a value back via a reference (outbound value). More...
class  StringContains
 Tests if the argument is a string that contains a substring. More...
class  StringEndsWith
 Tests if the argument is a string that contains a substring. More...
class  StringStartsWith
 Tests if the argument is a string that contains a substring. More...
class  TriggeredConstraint
 A constraint which is triggered or defered. More...
class  TriggeredOutbound
 Passes a value back via a reference (Outbound value). More...
class  TypelessConstraint
 A constraint where actual values are ignored. More...
class  TypelessConstraintAdapter
 An adapter for the "translation" typeless constrains. More...
class  AnyArgumentsMatcher
 Matches any arguments. More...
class  ArgumentsMatcher
 Match the arguments passed to a mock method. More...
class  InvocationMatcher
class  InvokeAtLeastMatcher
 Has the method been invoked at least a count? More...
class  InvokeAtLeastOnceMatcher
 Has the method been invoked at least once? More...
class  InvokeAtMostMatcher
 Has the method been invoked a maximal number of times? More...
class  InvokeCountMatcher
 Has the object been invoked a given number? More...
class  InvokedAfterMatcher
 Has the method been invoked after another? More...
class  InvokedBeforeMatcher
 Has the method been invoked before another? More...
class  InvokedRecorder
 Base for objects that match invocation counts. More...
class  InvokeOnceMatcher
 Has the method been invoked exactly once? More...
class  MatcherHolder
 Proxy class to conveniently move Matchers into matcher related methods. More...
class  NoArgumentsMatcher
 Matches no arguments at all. More...
class  StatelessInvocationMatcher
 Base for invocation matcher with no-chaning state. More...
class  TestFailureMatcher
 An invocation count matcher that always fails upon invocation. More...
class  TypelessMatcher
 Base for matchers regardless of method parameter values. More...
class  TypelessMatcherAdapter
 Adapter for the "translation" to typeless matcher objects. More...
class  UnlimitedMatcher
 Matches any invcotion. More...
class  TimeServer
 Base class for time serving purposes. More...
class  RealTimeServer
 Real time serving. More...
class  AbstractDynamicChainingMockImpl
 Implementation of a chaining mock. More...
class  AbstractDynamicChainingMock
 General template of a chaining mock. More...
class  AbstractDynamicChainingMock< void, I >
 Partial specialisation of a chaining mock for void methods. More...
class  AbstractInvocationDispatcher
 Base class for invocation dispatchers. More...
class  ChainableMockMethodCommon
 Common stuff to set up chainable mock method expectations. More...
class  ChainableMockMethod0Common
 Common stuff to set up chainable mock method expectations with 0 parameters. More...
class  ChainableMockMethod0
 Set up a chainable mock method expectations with 0 parameters. More...
class  ChainableMockMethod0< void >
 Set up a chainable mock method expectations with 0 parameters. More...
class  ChainableMockMethod1Common
 Common stuff to set up chainable mock method expectations with 1 parameters. More...
class  ChainableMockMethod1
 Set up a chainable mock method expectations with 1 parameters. More...
class  ChainableMockMethod1< void, P1 >
 Set up a chainable mock method expectations with 1 parameters. More...
class  ChainableMockMethod2Common
 Common stuff to set up chainable mock method expectations with 2 parameters. More...
class  ChainableMockMethod2
 Set up a chainable mock method expectations with 2 parameters. More...
class  ChainableMockMethod2< void, P1, P2 >
 Set up a chainable mock method expectations with 2 parameters. More...
class  ChainableMockMethod3Common
 Common stuff to set up chainable mock method expectations with 3 parameters. More...
class  ChainableMockMethod3
 Set up a chainable mock method expectations with 3 parameters. More...
class  ChainableMockMethod3< void, P1, P2, P3 >
 Set up a chainable mock method expectations with 3 parameters. More...
class  ChainableMockMethod4Common
 Common stuff to set up chainable mock method expectations with 4 parameters. More...
class  ChainableMockMethod4
 Set up a chainable mock method expectations with 4 parameters. More...
class  ChainableMockMethod4< void, P1, P2, P3, P4 >
 Set up a chainable mock method expectations with 4 parameters. More...
class  ChainableMockMethod5Common
 Common stuff to set up chainable mock method expectations with 5 parameters. More...
class  ChainableMockMethod5
 Set up a chainable mock method expectations with 5 parameters. More...
class  ChainableMockMethod5< void, P1, P2, P3, P4, P5 >
 Set up a chainable mock method expectations with 5 parameters. More...
class  ChainableMockMethod6Common
 Common stuff to set up chainable mock method expectations with 6 parameters. More...
class  ChainableMockMethod6
 Set up a chainable mock method expectations with 6 parameters. More...
class  ChainableMockMethod6< void, P1, P2, P3, P4, P5, P6 >
 Set up a chainable mock method expectations with 6 parameters. More...
class  ChainableMockObjectBase
 Base for a generic object that can be used to replace a real world object for testing purposes. More...
class  ChainableMockObject
 A generic object that can be used to replace a real world object for testing purposes. More...
class  ChainingMockBuilder
 Build chaining mocks. More...
class  CoreMock
 Helper class for chaining mocks. More...
class  CoreMock< void, I >
 Partial specialisation of a helper chaining mock for void methods. More...
class  SwitchChainable
 Helper class to select the method mock with the correct number of parameters. More...
class  SwitchChainable< 0 >
 Helper class to select the method mock with 0 parameters. More...
class  SwitchChainable< 1 >
 Helper class to select the method mock with 1 parameters. More...
class  SwitchChainable< 2 >
 Helper class to select the method mock with 2 parameters. More...
class  SwitchChainable< 3 >
 Helper class to select the method mock with 3 parameters. More...
class  SwitchChainable< 4 >
 Helper class to select the method mock with 4 parameters. More...
class  SwitchChainable< 5 >
 Helper class to select the method mock with 5 parameters. More...
class  SwitchChainable< 6 >
 Helper class to select the method mock with 6 parameters. More...
class  ChainableMockMethod
 Method mock class to select the actual class with the desired number of parameters. More...
class  DynamicChainingMock
 Interface for chaining mocks. More...
class  DynamicChainingMockError
 Helper class to handle chaining mock errors. More...
class  InvocationBase
 Base class for objects holding invocations. More...
class  Invocation
 Hold information about an invocation dispatched to a Mock object. More...
class  Invocation0
 Hold invocations without parameters. More...
class  InvocationDispatcher
 Dispatch invokables. More...
class  InvocationMockerBase
 Base class for helper objects to mock invocations. More...
class  InvocationMocker
 Helper object to mock invocations. More...
class  InvocationMocker< void, I >
 Partial specialisation for helper objects to mock void invocations. More...
class  Invocation1
 Hold invocations with 1 parameters. More...
class  Invocation2
 Hold invocations with 2 parameters. More...
class  Invocation3
 Hold invocations with 3 parameters. More...
class  Invocation4
 Hold invocations with 4 parameters. More...
class  Invocation5
 Hold invocations with 5 parameters. More...
class  Invocation6
 Hold invocations with 6 parameters. More...
class  Invokable
 Helper class to handle invocations. More...
class  StubMatchersCollection
 Container of matchers for stubs. More...
class  SwitchVisitable
 Helper class to select the method mock with the correct number of parameters. More...
class  SwitchVisitable< 0 >
 Helper class to select the method mock with 0 parameters. More...
class  SwitchVisitable< 1 >
 Helper class to select the method mock with 1 parameters. More...
class  SwitchVisitable< 2 >
 Helper class to select the method mock with 2 parameters. More...
class  SwitchVisitable< 3 >
 Helper class to select the method mock with 3 parameters. More...
class  SwitchVisitable< 4 >
 Helper class to select the method mock with 4 parameters. More...
class  SwitchVisitable< 5 >
 Helper class to select the method mock with 5 parameters. More...
class  SwitchVisitable< 6 >
 Helper class to select the method mock with 6 parameters. More...
class  VisitableMockMethod
 Method mock class to select the actual class with the desired number of parameters. More...
class  ResponseThrowableVector1
 Class returning a throwable depending on the parameters passed to a method. More...
class  ResponseVector1
 Class returning a throwable depending on the parameters passed to a method. More...
class  ResponseThrowableVector2
 Class returning a throwable depending on the parameters passed to a method. More...
class  ResponseVector2
 Class returning a throwable depending on the parameters passed to a method. More...
class  ResponseThrowableVector3
 Class returning a throwable depending on the parameters passed to a method. More...
class  ResponseVector3
 Class returning a throwable depending on the parameters passed to a method. More...
class  ResponseThrowableVector4
 Class returning a throwable depending on the parameters passed to a method. More...
class  ResponseVector4
 Class returning a throwable depending on the parameters passed to a method. More...
class  ResponseThrowableVector5
 Class returning a throwable depending on the parameters passed to a method. More...
class  ResponseVector5
 Class returning a throwable depending on the parameters passed to a method. More...
class  ResponseThrowableVector6
 Class returning a throwable depending on the parameters passed to a method. More...
class  ResponseVector6
 Class returning a throwable depending on the parameters passed to a method. More...
class  VisitableMockMethodBase
 Base of all mock methods. More...
class  VisitableMockReturningMethodBase
 Base of all mock methods returning some value. More...
class  VisitableMockReturningMethodBase< void >
 Base of all mock methods returning void. More...
class  VisitableMockMethod0Common
 Common stuff to set up visitable mock method expectations with 0 parameters. More...
class  VisitableMockMethod0
 Set up visitable mock method expectations with 0 parameters. More...
class  VisitableMockMethod0< void >
 Set up visitable mock method expectations with 0 parameters. More...
class  VisitableMockMethod1Common
 Common stuff to set up visitable mock method expectations with 1 parameters. More...
class  VisitableMockMethod1
 Set up visitable mock method expectations with 1 parameters. More...
class  VisitableMockMethod1< void, P1 >
 Set up visitable mock method expectations with 1 parameters. More...
class  VisitableMockMethod2Common
 Common stuff to set up visitable mock method expectations with 2 parameters. More...
class  VisitableMockMethod2
 Set up visitable mock method expectations with 2 parameters. More...
class  VisitableMockMethod2< void, P1, P2 >
 Set up visitable mock method expectations with 2 parameters. More...
class  VisitableMockMethod3Common
 Common stuff to set up visitable mock method expectations with 3 parameters. More...
class  VisitableMockMethod3
 Set up visitable mock method expectations with 3 parameters. More...
class  VisitableMockMethod3< void, P1, P2, P3 >
 Set up visitable mock method expectations with 3 parameters. More...
class  VisitableMockMethod4Common
 Common stuff to set up visitable mock method expectations with 4 parameters. More...
class  VisitableMockMethod4
 Set up visitable mock method expectations with 4 parameters. More...
class  VisitableMockMethod4< void, P1, P2, P3, P4 >
 Set up visitable mock method expectations with 4 parameters. More...
class  VisitableMockMethod5Common
 Common stuff to set up visitable mock method expectations with 5 parameters. More...
class  VisitableMockMethod5
 Set up visitable mock method expectations with 5 parameters. More...
class  VisitableMockMethod5< void, P1, P2, P3, P4, P5 >
 Set up visitable mock method expectations with 5 parameters. More...
class  VisitableMockMethod6Common
 Common stuff to set up visitable mock method expectations with 6 parameters. More...
class  VisitableMockMethod6
 Set up visitable mock method expectations with 6 parameters. More...
class  VisitableMockMethod6< void, P1, P2, P3, P4, P5, P6 >
 Set up visitable mock method expectations with 6 parameters. More...
class  VisitableMockObjectBase
 Base class for a generic object that can be used to replace a real world object for testing purposes. More...
class  VisitableMockObject
 A generic object that can be used to replace a real world object for testing purposes. More...
class  CxxTestRunner
 Helper class to run tests with CxxTest framework. More...
class  VerifyingTestCaller
 VerifyingTestCaller that verifies Verifiable fields and registered Verifiable objects after the test has run and before the fixture has been torn down. More...
class  VerifyingTestCase
 TestCase that verifies Verifiable fields and registered Verifiable objects after the test has run and before the fixture has been torn down. More...

Typedefs

typedef std::basic_string< char > String
 Actual type of a string (basic_string<char/wchar_t>).
typedef char Char
 Actual type of a single character (char/wchar_t).
typedef void(* AssertionFailedForwarder_t )(const AssertionFailedError &err)
 Forwarder for failures.

Functions

void getVersion (int &major, int &minor, int &patch, bool &debug, std::string &info)
 add template specialisation to prevent float/double ExpectationValue's
AssertionFailedForwarder_t setAssertionFailedForwarder (AssertionFailedForwarder_t fwd)
 Sets the function pointer which handles failed assertions.
std::string getLatin1 (const std::string &latin1)
 Converts a string from latin1 to latin1.
template<class T >
Throwablemake_throwable (const T &w)
 Helper template to create a Throwable from an ordinary object.
void assertTrue (unsigned srcline, const char *srcfile, const String &message, bool condition)
 Asserts that a condition is true.
void assertTrue (unsigned srcline, const char *srcfile, bool condition)
 Asserts that a condition is true.
void assertFalse (unsigned srcline, const char *srcfile, const String &message, bool condition)
 Asserts that a condition is false.
void assertFalse (unsigned srcline, const char *srcfile, bool condition)
 Asserts that a condition is false.
void fail (unsigned srcline, const char *srcfile, const String &message)
 Fails a test with the given message (AssertionFailedError is thrown).
void fail (unsigned srcline, const char *srcfile)
 Fails a test with no message.
void assertEquals (unsigned srcline, const char *srcfile, const char *expected, const char *actual)
 Asserts that two c-string are equal.
void assertEquals (unsigned srcline, const char *srcfile, const String &message, const char *expected, const char *actual)
 Asserts that two c-string are equal.
void assertEquals (unsigned srcline, const char *srcfile, const wchar_t *expected, const wchar_t *actual)
 Asserts that two unicode c-string are equal.
void assertEquals (unsigned srcline, const char *srcfile, const String &message, const wchar_t *expected, const wchar_t *actual)
 Asserts that two unicode c-string are equal.
void assertDelta (unsigned srcline, const char *srcfile, const String &message, double expected, double actual, double delta)
 Asserts that two doubles are equal concerning a delta.
void assertDelta (unsigned srcline, const char *srcfile, double expected, double actual, double delta)
 Asserts that two doubles are equal concerning a delta.
void assertDelta (unsigned srcline, const char *srcfile, const String &message, float expected, float actual, float delta)
 Asserts that two floats are equal concerning a delta.
void assertDelta (unsigned srcline, const char *srcfile, float expected, float actual, float delta)
 Asserts that two floats are equal concerning a delta.
template<class T >
void assertEquals (unsigned srcline, const char *srcfile, const String &message, const T &expected, const T &actual)
 Asserts that two values are equal.
template<class T >
void assertEquals (unsigned srcline, const char *srcfile, const T &expected, const T &actual)
 Asserts that two values are equal.
template<class T >
void assertDelta (unsigned srcline, const char *srcfile, const String &message, const T &expected, const T &actual, const T &delta)
 Asserts that two values are equal concerning a delta.
template<class T >
void assertDelta (unsigned srcline, const char *srcfile, const T &expected, const T &actual, const T &delta)
 Asserts that two values are equal concerning a delta.
template<class T >
void assertBoundary (unsigned srcline, const char *srcfile, const String &message, const T &lo, const T &up, const T &actual)
 Asserts that a values lies between two boundary values.
template<class T >
void assertBoundary (unsigned srcline, const char *srcfile, const T &lo, const T &up, const T &actual)
 Asserts that a values lies between two boundary values.
void assertionFailed (unsigned srcline, const String &srcfile, const String &message)
 Throws an AssertionFailedError.
void defaultAssertionFailedForwarder (const AssertionFailedError &err)
 default failure forwarder.
void assertionFailed (unsigned srcline, const char *srcfile, const String &message)
 Throws an AssertionFailedError.
mockpp::String number (long n, unsigned base=10)
 Converts a long value into its string representation.
mockpp::String number (long long n, unsigned base=10)
 Converts a longlong value into its string representation.
mockpp::String number (unsigned long n, unsigned base=10)
 Converts an unsigned long value into its string representation.
mockpp::String number (unsigned long long n, unsigned base=10)
 Converts an unsigned long value into its string representation.
mockpp::String number (double n, unsigned prec=0)
 Converts an double value into its string representation.
mockpp::String number (long double n, unsigned prec=0)
 Converts an long double value into its string representation.
static bool findArg (mockpp::String &fmt, int &pos, int &len)
 Helper function.
StringreplaceFormatterString (String &formatter, const String &repdata)
 Replace a positional -parameter with a value.
static String charToReadable (unsigned x)
 Transform a character into a human readable string.
template<class T >
mockpp::String ostreamed (const T &t)
 Outputter which reuses an existing operator<<(std::basic_ostream<wchar_t>&, T).
template<class T >
mockpp::String owstreamed (const T &t)
 Outputter which reuses an existing operator<<(std::basic_ostream<wchar_t>&, T).
void assertExcludes (unsigned srcline, const char *srcfile, const String &description, const std::string &excludeString, const std::string &targetString)
 Asserts that a string does not contain a substring.
void assertExcludes (unsigned srcline, const char *srcfile, const String &description, const std::basic_string< wchar_t > &excludeString, const std::basic_string< wchar_t > &targetString)
 Asserts that a string does not contain a substring.
void assertIncludes (unsigned srcline, const char *srcfile, const String &description, const std::string &includeString, const std::string &targetString)
 Asserts that a string does contain a substring.
void assertIncludes (unsigned srcline, const char *srcfile, const String &description, const std::basic_string< wchar_t > &includeString, const std::basic_string< wchar_t > &targetString)
 Asserts that a string does contain a substring.
void assertStartsWith (unsigned srcline, const char *srcfile, const String &description, const std::string &startString, const std::string &targetString)
 Asserts that a string starts with a substring.
void assertStartsWith (unsigned srcline, const char *srcfile, const String &description, const std::basic_string< wchar_t > &startString, const std::basic_string< wchar_t > &targetString)
 Asserts that a string starts with a substring.
void assertVerifyFails (unsigned srcline, const char *srcfile, Verifiable *aVerifiable)
 Asserts that a verify() of an object fails.
void notImplemented (unsigned srcline, const char *srcfile, const String &mockName)
 Throws unconditionally a NotImplementedException with the given name to indicate a not yet implemented method.
template<typename R , typename F >
TypelessStub< R >::AP returnValueAndCall (const R &o, F f)
 Creates a stub returning a value and calling a functor.
template<typename F >
TypelessStub< void >::AP call (F f)
 Creates a stub calling a functor.
template<class T >
bool isEqualComparison (const T &left, const T &right)
 Default comparison function for IsEqual.
template<class T >
bool isSameComparison (const T &left, const T &right)
 Default comparison function for IsSame.
AutoPointer< TypelessMatcheronce ()
 Creates a matcher to verify a single invocation.
AutoPointer< TypelessMatcheratLeastOnce ()
 Creates a matcher to verify a minimum invocation count of one.
AutoPointer< TypelessMatcheratMost (int expectedCount)
 Creates a matcher to verify a maximal invocation count.
AutoPointer< TypelessMatcheratLeast (int expectedCount)
 Creates a matcher to verify a minimal invocation count.
AutoPointer< TypelessMatcherunlimited ()
 Creates a matcher to verify an arbitrary invocation count.
AutoPointer< TypelessMatcherexactly (int expectedCount)
 Creates a matcher to verify an exact invocation count.
AutoPointer< TypelessMatchernever ()
 Creates a matcher to verify that the invactation never occured.
AutoPointer< TypelessMatchernever (const String &errorMessage)
 Creates a matcher to verify that the invactation never occured.
TypelessConstraint::AP any ()
 Creates a constraint that matches any invocation.
TypelessConstraint::AP nothing ()
 Creates a constraint that never matches an invocation.
TypelessStub< void >::AP isVoid ()
 Creates a stub returning a void stub.
template<typename T >
Constraint< T >::AP outBound (const T &op)
 Passes a value back via a reference (outbound value).
template<typename T >
Constraint< T >::AP eq (const T &op)
 Creates a constraint that tests for equality.
template<typename T >
Constraint< T >::AP ne (const T &op)
 Creates a constraint that tests for non-equality.
template<typename T >
Constraint< T >::AP eq (const T &operand, const T &deviation)
 Creates a constraint that tests for near-equality.
template<typename T >
Constraint< T >::AP le (const T &value)
 Creates a less-or-equal constraint.
template<typename T >
Constraint< T >::AP lt (const T &value)
 Creates a less-than constraint.
template<typename T >
Constraint< T >::AP gt (const T &value)
 Creates a greater-than constraint.
template<typename T >
Constraint< T >::AP ge (const T &value)
 Creates a greater-or-equal constraint.
template<typename T >
Constraint< T >::AP same (const T &operand)
 Creates a constraint that checks if an object is the same.
template<typename ROOT , typename DERIVED >
Constraint< ROOT * >::AP isA (const DERIVED &)
 Creates a constraint that checks if an object is derived from a base class.
template<typename ROOT , typename DERIVED >
Constraint< ROOT * >::AP isA ()
 Creates a constraint that checks if an object is derived from a base class.
template<typename S >
Constraint< S >::AP stringContains (const S &substring)
 Creates a constraint that checks for the occurence of a substring.
template<typename S >
Constraint< S >::AP startsWith (const S &substring)
 Creates a constraint that checks for the occurence of a starting substring.
template<typename S >
Constraint< S >::AP endsWith (const S &substring)
 Creates a constraint that checks for the occurence of a trailing substring.
template<typename PCS >
Constraint< std::basic_string
< PCS > >::AP 
stringContains (const PCS *substring)
 Creates a constraint that checks for the occurence of a substring.
template<typename T >
Constraint< T >::AP logic_not (const ConstraintHolder< T > &c)
 Creates a constraint that negates another.
template<typename T >
Constraint< T >::AP logic_and (const ConstraintHolder< T > &left, const ConstraintHolder< T > &right, bool shortcut=true)
 Creates a constraint to logically-and two other constraints.
template<typename T >
Constraint< T >::AP logic_or (const ConstraintHolder< T > &left, const ConstraintHolder< T > &right, bool shortcut=true)
 Creates a constraint to logically-or two other constraints.
template<typename T >
TypelessStub< T >::AP returnValue (const T &o)
 Creates a stub returning a value.
template<typename R , typename T >
TypelessStub< R >::AP randomValue (const T &max)
 Creates a stub returning a random value.
template<typename R , typename T >
TypelessStub< R >::AP randomValue (const T &min, const T &max)
 Creates a stub returning a random value.
template<typename T , typename I >
TypelessStub< T >::AP returnValue (I start, I end)
 Creates a stub returning a value.
template<typename R , typename T >
TypelessStub< R >::AP throwException (const T &val)
 Creates a stub throwing a value.
template<class T >
bool invocationComparison (const T &left, const T &right)
 Default comparison function for the various Invocation classes.
template<typename R , typename I >
Stub< R, I >::AP onConsecutiveCalls (AutoPointer< Stub< R, I > > stub1)
 Creates a sequence of 1 stubs.
template<typename R , typename I >
Stub< R, I >::AP onConsecutiveCalls (Stub< R, I > *stub1)
 Creates a sequence of 1 stubs.
template<typename R >
TypelessStub< R >::AP onConsecutiveCalls (AutoPointer< TypelessStub< R > > stub1)
 Creates a sequence of 1 typeless stubs.
template<typename R >
TypelessStub< R >::AP onConsecutiveCalls (TypelessStub< R > *stub1)
 Creates a sequence of 1 typeless stubs.
template<typename R , typename I >
Stub< R, I >::AP onConsecutiveCalls (AutoPointer< Stub< R, I > > stub1, AutoPointer< Stub< R, I > > stub2)
 Creates a sequence of 2 stubs.
template<typename R , typename I >
Stub< R, I >::AP onConsecutiveCalls (Stub< R, I > *stub1, Stub< R, I > *stub2)
 Creates a sequence of 2 stubs.
template<typename R >
TypelessStub< R >::AP onConsecutiveCalls (AutoPointer< TypelessStub< R > > stub1, AutoPointer< TypelessStub< R > > stub2)
 Creates a sequence of 2 typeless stubs.
template<typename R >
TypelessStub< R >::AP onConsecutiveCalls (TypelessStub< R > *stub1, TypelessStub< R > *stub2)
 Creates a sequence of 2 typeless stubs.
template<typename R , typename I >
Stub< R, I >::AP onConsecutiveCalls (AutoPointer< Stub< R, I > > stub1, AutoPointer< Stub< R, I > > stub2, AutoPointer< Stub< R, I > > stub3)
 Creates a sequence of 3 stubs.
template<typename R , typename I >
Stub< R, I >::AP onConsecutiveCalls (Stub< R, I > *stub1, Stub< R, I > *stub2, Stub< R, I > *stub3)
 Creates a sequence of 3 stubs.
template<typename R >
TypelessStub< R >::AP onConsecutiveCalls (AutoPointer< TypelessStub< R > > stub1, AutoPointer< TypelessStub< R > > stub2, AutoPointer< TypelessStub< R > > stub3)
 Creates a sequence of 3 typeless stubs.
template<typename R >
TypelessStub< R >::AP onConsecutiveCalls (TypelessStub< R > *stub1, TypelessStub< R > *stub2, TypelessStub< R > *stub3)
 Creates a sequence of 3 typeless stubs.
template<typename R , typename I >
Stub< R, I >::AP onConsecutiveCalls (AutoPointer< Stub< R, I > > stub1, AutoPointer< Stub< R, I > > stub2, AutoPointer< Stub< R, I > > stub3, AutoPointer< Stub< R, I > > stub4)
 Creates a sequence of 4 stubs.
template<typename R , typename I >
Stub< R, I >::AP onConsecutiveCalls (Stub< R, I > *stub1, Stub< R, I > *stub2, Stub< R, I > *stub3, Stub< R, I > *stub4)
 Creates a sequence of 4 stubs.
template<typename R >
TypelessStub< R >::AP onConsecutiveCalls (AutoPointer< TypelessStub< R > > stub1, AutoPointer< TypelessStub< R > > stub2, AutoPointer< TypelessStub< R > > stub3, AutoPointer< TypelessStub< R > > stub4)
 Creates a sequence of 4 typeless stubs.
template<typename R >
TypelessStub< R >::AP onConsecutiveCalls (TypelessStub< R > *stub1, TypelessStub< R > *stub2, TypelessStub< R > *stub3, TypelessStub< R > *stub4)
 Creates a sequence of 4 typeless stubs.
template<typename R , typename I >
Stub< R, I >::AP onConsecutiveCalls (AutoPointer< Stub< R, I > > stub1, AutoPointer< Stub< R, I > > stub2, AutoPointer< Stub< R, I > > stub3, AutoPointer< Stub< R, I > > stub4, AutoPointer< Stub< R, I > > stub5)
 Creates a sequence of 5 stubs.
template<typename R , typename I >
Stub< R, I >::AP onConsecutiveCalls (Stub< R, I > *stub1, Stub< R, I > *stub2, Stub< R, I > *stub3, Stub< R, I > *stub4, Stub< R, I > *stub5)
 Creates a sequence of 5 stubs.
template<typename R >
TypelessStub< R >::AP onConsecutiveCalls (AutoPointer< TypelessStub< R > > stub1, AutoPointer< TypelessStub< R > > stub2, AutoPointer< TypelessStub< R > > stub3, AutoPointer< TypelessStub< R > > stub4, AutoPointer< TypelessStub< R > > stub5)
 Creates a sequence of 5 typeless stubs.
template<typename R >
TypelessStub< R >::AP onConsecutiveCalls (TypelessStub< R > *stub1, TypelessStub< R > *stub2, TypelessStub< R > *stub3, TypelessStub< R > *stub4, TypelessStub< R > *stub5)
 Creates a sequence of 5 typeless stubs.
template<typename R , typename I >
Stub< R, I >::AP onConsecutiveCalls (AutoPointer< Stub< R, I > > stub1, AutoPointer< Stub< R, I > > stub2, AutoPointer< Stub< R, I > > stub3, AutoPointer< Stub< R, I > > stub4, AutoPointer< Stub< R, I > > stub5, AutoPointer< Stub< R, I > > stub6)
 Creates a sequence of 6 stubs.
template<typename R , typename I >
Stub< R, I >::AP onConsecutiveCalls (Stub< R, I > *stub1, Stub< R, I > *stub2, Stub< R, I > *stub3, Stub< R, I > *stub4, Stub< R, I > *stub5, Stub< R, I > *stub6)
 Creates a sequence of 6 stubs.
template<typename R >
TypelessStub< R >::AP onConsecutiveCalls (AutoPointer< TypelessStub< R > > stub1, AutoPointer< TypelessStub< R > > stub2, AutoPointer< TypelessStub< R > > stub3, AutoPointer< TypelessStub< R > > stub4, AutoPointer< TypelessStub< R > > stub5, AutoPointer< TypelessStub< R > > stub6)
 Creates a sequence of 6 typeless stubs.
template<typename R >
TypelessStub< R >::AP onConsecutiveCalls (TypelessStub< R > *stub1, TypelessStub< R > *stub2, TypelessStub< R > *stub3, TypelessStub< R > *stub4, TypelessStub< R > *stub5, TypelessStub< R > *stub6)
 Creates a sequence of 6 typeless stubs.
template<typename R , typename I >
Stub< R, I >::AP onConsecutiveCalls (AutoPointer< Stub< R, I > > stub1, AutoPointer< Stub< R, I > > stub2, AutoPointer< Stub< R, I > > stub3, AutoPointer< Stub< R, I > > stub4, AutoPointer< Stub< R, I > > stub5, AutoPointer< Stub< R, I > > stub6, AutoPointer< Stub< R, I > > stub7)
 Creates a sequence of 7 stubs.
template<typename R , typename I >
Stub< R, I >::AP onConsecutiveCalls (Stub< R, I > *stub1, Stub< R, I > *stub2, Stub< R, I > *stub3, Stub< R, I > *stub4, Stub< R, I > *stub5, Stub< R, I > *stub6, Stub< R, I > *stub7)
 Creates a sequence of 7 stubs.
template<typename R >
TypelessStub< R >::AP onConsecutiveCalls (AutoPointer< TypelessStub< R > > stub1, AutoPointer< TypelessStub< R > > stub2, AutoPointer< TypelessStub< R > > stub3, AutoPointer< TypelessStub< R > > stub4, AutoPointer< TypelessStub< R > > stub5, AutoPointer< TypelessStub< R > > stub6, AutoPointer< TypelessStub< R > > stub7)
 Creates a sequence of 7 typeless stubs.
template<typename R >
TypelessStub< R >::AP onConsecutiveCalls (TypelessStub< R > *stub1, TypelessStub< R > *stub2, TypelessStub< R > *stub3, TypelessStub< R > *stub4, TypelessStub< R > *stub5, TypelessStub< R > *stub6, TypelessStub< R > *stub7)
 Creates a sequence of 7 typeless stubs.
template<typename R , typename I >
Stub< R, I >::AP onConsecutiveCalls (AutoPointer< Stub< R, I > > stub1, AutoPointer< Stub< R, I > > stub2, AutoPointer< Stub< R, I > > stub3, AutoPointer< Stub< R, I > > stub4, AutoPointer< Stub< R, I > > stub5, AutoPointer< Stub< R, I > > stub6, AutoPointer< Stub< R, I > > stub7, AutoPointer< Stub< R, I > > stub8)
 Creates a sequence of 8 stubs.
template<typename R , typename I >
Stub< R, I >::AP onConsecutiveCalls (Stub< R, I > *stub1, Stub< R, I > *stub2, Stub< R, I > *stub3, Stub< R, I > *stub4, Stub< R, I > *stub5, Stub< R, I > *stub6, Stub< R, I > *stub7, Stub< R, I > *stub8)
 Creates a sequence of 8 stubs.
template<typename R >
TypelessStub< R >::AP onConsecutiveCalls (AutoPointer< TypelessStub< R > > stub1, AutoPointer< TypelessStub< R > > stub2, AutoPointer< TypelessStub< R > > stub3, AutoPointer< TypelessStub< R > > stub4, AutoPointer< TypelessStub< R > > stub5, AutoPointer< TypelessStub< R > > stub6, AutoPointer< TypelessStub< R > > stub7, AutoPointer< TypelessStub< R > > stub8)
 Creates a sequence of 8 typeless stubs.
template<typename R >
TypelessStub< R >::AP onConsecutiveCalls (TypelessStub< R > *stub1, TypelessStub< R > *stub2, TypelessStub< R > *stub3, TypelessStub< R > *stub4, TypelessStub< R > *stub5, TypelessStub< R > *stub6, TypelessStub< R > *stub7, TypelessStub< R > *stub8)
 Creates a sequence of 8 typeless stubs.
template<typename R , typename I >
Stub< R, I >::AP onConsecutiveCalls (AutoPointer< Stub< R, I > > stub1, AutoPointer< Stub< R, I > > stub2, AutoPointer< Stub< R, I > > stub3, AutoPointer< Stub< R, I > > stub4, AutoPointer< Stub< R, I > > stub5, AutoPointer< Stub< R, I > > stub6, AutoPointer< Stub< R, I > > stub7, AutoPointer< Stub< R, I > > stub8, AutoPointer< Stub< R, I > > stub9)
 Creates a sequence of 9 stubs.
template<typename R , typename I >
Stub< R, I >::AP onConsecutiveCalls (Stub< R, I > *stub1, Stub< R, I > *stub2, Stub< R, I > *stub3, Stub< R, I > *stub4, Stub< R, I > *stub5, Stub< R, I > *stub6, Stub< R, I > *stub7, Stub< R, I > *stub8, Stub< R, I > *stub9)
 Creates a sequence of 9 stubs.
template<typename R >
TypelessStub< R >::AP onConsecutiveCalls (AutoPointer< TypelessStub< R > > stub1, AutoPointer< TypelessStub< R > > stub2, AutoPointer< TypelessStub< R > > stub3, AutoPointer< TypelessStub< R > > stub4, AutoPointer< TypelessStub< R > > stub5, AutoPointer< TypelessStub< R > > stub6, AutoPointer< TypelessStub< R > > stub7, AutoPointer< TypelessStub< R > > stub8, AutoPointer< TypelessStub< R > > stub9)
 Creates a sequence of 9 typeless stubs.
template<typename R >
TypelessStub< R >::AP onConsecutiveCalls (TypelessStub< R > *stub1, TypelessStub< R > *stub2, TypelessStub< R > *stub3, TypelessStub< R > *stub4, TypelessStub< R > *stub5, TypelessStub< R > *stub6, TypelessStub< R > *stub7, TypelessStub< R > *stub8, TypelessStub< R > *stub9)
 Creates a sequence of 9 typeless stubs.
template<typename R , typename I >
Stub< R, I >::AP onConsecutiveCalls (AutoPointer< Stub< R, I > > stub1, AutoPointer< Stub< R, I > > stub2, AutoPointer< Stub< R, I > > stub3, AutoPointer< Stub< R, I > > stub4, AutoPointer< Stub< R, I > > stub5, AutoPointer< Stub< R, I > > stub6, AutoPointer< Stub< R, I > > stub7, AutoPointer< Stub< R, I > > stub8, AutoPointer< Stub< R, I > > stub9, AutoPointer< Stub< R, I > > stub10)
 Creates a sequence of 10 stubs.
template<typename R , typename I >
Stub< R, I >::AP onConsecutiveCalls (Stub< R, I > *stub1, Stub< R, I > *stub2, Stub< R, I > *stub3, Stub< R, I > *stub4, Stub< R, I > *stub5, Stub< R, I > *stub6, Stub< R, I > *stub7, Stub< R, I > *stub8, Stub< R, I > *stub9, Stub< R, I > *stub10)
 Creates a sequence of 10 stubs.
template<typename R >
TypelessStub< R >::AP onConsecutiveCalls (AutoPointer< TypelessStub< R > > stub1, AutoPointer< TypelessStub< R > > stub2, AutoPointer< TypelessStub< R > > stub3, AutoPointer< TypelessStub< R > > stub4, AutoPointer< TypelessStub< R > > stub5, AutoPointer< TypelessStub< R > > stub6, AutoPointer< TypelessStub< R > > stub7, AutoPointer< TypelessStub< R > > stub8, AutoPointer< TypelessStub< R > > stub9, AutoPointer< TypelessStub< R > > stub10)
 Creates a sequence of 10 typeless stubs.
template<typename R >
TypelessStub< R >::AP onConsecutiveCalls (TypelessStub< R > *stub1, TypelessStub< R > *stub2, TypelessStub< R > *stub3, TypelessStub< R > *stub4, TypelessStub< R > *stub5, TypelessStub< R > *stub6, TypelessStub< R > *stub7, TypelessStub< R > *stub8, TypelessStub< R > *stub9, TypelessStub< R > *stub10)
 Creates a sequence of 10 typeless stubs.
template<typename R , typename TC1 >
TypelessStub< R >::AP returnValueAndTrigger (const R &o, TriggeredConstraint< TC1 > *tc1)
 Creates a stub returning a value and triggering a constraint.
template<typename TC1 >
TypelessStub< void >::AP trigger (TriggeredConstraint< TC1 > *tc1)
 Creates a stub triggering a constraint.
template<typename R , typename TC1 , typename TC2 >
TypelessStub< R >::AP returnValueAndTrigger (const R &o, TriggeredConstraint< TC1 > *tc1, TriggeredConstraint< TC2 > *tc2)
 Creates a stub returning a value and triggering a constraint.
template<typename TC1 , typename TC2 >
TypelessStub< void >::AP trigger (TriggeredConstraint< TC1 > *tc1, TriggeredConstraint< TC2 > *tc2)
 Creates a stub triggering a constraint.
template<typename R , typename TC1 , typename TC2 , typename TC3 >
TypelessStub< R >::AP returnValueAndTrigger (const R &o, TriggeredConstraint< TC1 > *tc1, TriggeredConstraint< TC2 > *tc2, TriggeredConstraint< TC3 > *tc3)
 Creates a stub returning a value and triggering a constraint.
template<typename TC1 , typename TC2 , typename TC3 >
TypelessStub< void >::AP trigger (TriggeredConstraint< TC1 > *tc1, TriggeredConstraint< TC2 > *tc2, TriggeredConstraint< TC3 > *tc3)
 Creates a stub triggering a constraint.
template<typename R , typename TC1 , typename TC2 , typename TC3 , typename TC4 >
TypelessStub< R >::AP returnValueAndTrigger (const R &o, TriggeredConstraint< TC1 > *tc1, TriggeredConstraint< TC2 > *tc2, TriggeredConstraint< TC3 > *tc3, TriggeredConstraint< TC4 > *tc4)
 Creates a stub returning a value and triggering a constraint.
template<typename TC1 , typename TC2 , typename TC3 , typename TC4 >
TypelessStub< void >::AP trigger (TriggeredConstraint< TC1 > *tc1, TriggeredConstraint< TC2 > *tc2, TriggeredConstraint< TC3 > *tc3, TriggeredConstraint< TC4 > *tc4)
 Creates a stub triggering a constraint.
template<typename R , typename TC1 , typename TC2 , typename TC3 , typename TC4 , typename TC5 >
TypelessStub< R >::AP returnValueAndTrigger (const R &o, TriggeredConstraint< TC1 > *tc1, TriggeredConstraint< TC2 > *tc2, TriggeredConstraint< TC3 > *tc3, TriggeredConstraint< TC4 > *tc4, TriggeredConstraint< TC5 > *tc5)
 Creates a stub returning a value and triggering a constraint.
template<typename TC1 , typename TC2 , typename TC3 , typename TC4 , typename TC5 >
TypelessStub< void >::AP trigger (TriggeredConstraint< TC1 > *tc1, TriggeredConstraint< TC2 > *tc2, TriggeredConstraint< TC3 > *tc3, TriggeredConstraint< TC4 > *tc4, TriggeredConstraint< TC5 > *tc5)
 Creates a stub triggering a constraint.
template<typename R , typename TC1 , typename TC2 , typename TC3 , typename TC4 , typename TC5 , typename TC6 >
TypelessStub< R >::AP returnValueAndTrigger (const R &o, TriggeredConstraint< TC1 > *tc1, TriggeredConstraint< TC2 > *tc2, TriggeredConstraint< TC3 > *tc3, TriggeredConstraint< TC4 > *tc4, TriggeredConstraint< TC5 > *tc5, TriggeredConstraint< TC6 > *tc6)
 Creates a stub returning a value and triggering a constraint.
template<typename TC1 , typename TC2 , typename TC3 , typename TC4 , typename TC5 , typename TC6 >
TypelessStub< void >::AP trigger (TriggeredConstraint< TC1 > *tc1, TriggeredConstraint< TC2 > *tc2, TriggeredConstraint< TC3 > *tc3, TriggeredConstraint< TC4 > *tc4, TriggeredConstraint< TC5 > *tc5, TriggeredConstraint< TC6 > *tc6)
 Creates a stub triggering a constraint.

Variables

AssertionFailedForwarder_t forwardAssertionFailed = defaultAssertionFailedForwarder
 default failure forwarder pointer.

Detailed Description

Namespace for project "Mock Objects for C++".


Function Documentation

void mockpp::assertionFailed ( unsigned  srcline,
const char *  srcfile,
const String &  message 
)

Throws an AssertionFailedError.

Parameters:
srcline the line in the sourcefile
srcfile the name of the sourcefile
message a human readable description about the cause
void mockpp::assertionFailed ( unsigned  srcline,
const String &  srcfile,
const String &  message 
)

Throws an AssertionFailedError.

Parameters:
srcline the line in the sourcefile
srcfile the name of the sourcefile
message a human readable description about the cause
void mockpp::defaultAssertionFailedForwarder ( const AssertionFailedError &  err  ) 

default failure forwarder.

Throws an exception.

Definition at line 63 of file AssertionFailedError.cpp.

std::string mockpp::getLatin1 ( const std::string &  latin1  )  [inline]

Converts a string from latin1 to latin1.

Dummy function to avoid error messages.

Parameters:
latin1 string in ISO8859-1 encoding
Returns:
the same string

Definition at line 535 of file mockpp.h.

void mockpp::getVersion ( int &  major,
int &  minor,
int &  patch,
bool &  debug,
std::string &  info 
)

add template specialisation to prevent float/double ExpectationValue's

Gets the various parts of the version number.

Parameters:
major major part
minor minor part
patch patch counter
debug true: compiled with DEBUG
info some human readable information
template<class T >
bool mockpp::invocationComparison ( const T &  left,
const T &  right 
) [inline]

Default comparison function for the various Invocation classes.

The default implementation compares the values of the two objects.

See also:
mockpp::Invocation
Parameters:
left left operand
right right operand
Returns:
true if both values are equal

Definition at line 61 of file Invocation.h.

template<class T >
Throwable* mockpp::make_throwable ( const T &  w  )  [inline]

Helper template to create a Throwable from an ordinary object.

Parameters:
w the object to throw
Returns:
a pointer to the throwable object

Definition at line 124 of file Throwable.h.

template<class T >
mockpp ::String mockpp::ostreamed ( const T &  t  )  [inline]

Outputter which reuses an existing operator<<(std::basic_ostream<wchar_t>&, T).

Parameters:
t data type for output

Definition at line 396 of file Formatter.h.

template<class T >
mockpp ::String mockpp::owstreamed ( const T &  t  )  [inline]

Outputter which reuses an existing operator<<(std::basic_ostream<wchar_t>&, T).

Parameters:
t data type for output

Definition at line 440 of file Formatter.h.

 All Classes Namespaces Files Functions Variables Typedefs Friends Defines

Generated on Tue Jan 5 09:48:58 2010 for mockpp by  doxygen 1.6.1