Fix format without expectation name

Signed-off-by: Denis Hananein <i@zloylos.me>
This commit is contained in:
Denis Hananein 2022-10-21 15:37:38 +02:00
parent 0d26378919
commit 09e1c64f86

View File

@ -1213,9 +1213,9 @@ class TypedExpectation<R(Args...)> : public ExpectationBase {
if (IsSaturated()) {
// We have an excessive call.
IncrementCallCount();
*what << "Mock function called more times than expected ";
*what << "Mock function called more times than expected";
if (!expectation_name.empty()) {
*what << "for \"" << expectation_name << "\" ";
*what << " for \"" << expectation_name << "\"";
}
*what << " - ";
mocker->DescribeDefaultActionTo(args, what);