Class UnexpectedCallHappenedFailure

Inheritance Relationships

Base Type

Class Documentation

class UnexpectedCallHappenedFailure : public mu::tiny::mock::Failure
[source]

Failure reported when an unexpected call is made.

Triggered when a mock function is called but no matching expectation exists.

Public Functions

UnexpectedCallHappenedFailure(test::Shell *test, const String &name, const ExpectedCallsList &expectations)
Parameters:
  • test – The failing test.

  • name – Name of the unexpectedly called function.

  • expectations – The current expected-calls list.