summaryrefslogtreecommitdiff
path: root/googlemock
diff options
context:
space:
mode:
authorDenis Hananein <i@zloylos.me>2022-10-21 15:37:38 +0200
committerDenis Hananein <i@zloylos.me>2022-10-21 15:37:38 +0200
commit09e1c64f86634dd3a38bff59f3c24c5b8ad6675a (patch)
treec3852aa55aca3f62f9ac1c9deddc09c6931cda0e /googlemock
parent0d263789198e021b688942c55d483ad670c66f22 (diff)
downloadgoogletest-git-09e1c64f86634dd3a38bff59f3c24c5b8ad6675a.tar.gz
Fix format without expectation name
Signed-off-by: Denis Hananein <i@zloylos.me>
Diffstat (limited to 'googlemock')
-rw-r--r--googlemock/include/gmock/gmock-spec-builders.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/googlemock/include/gmock/gmock-spec-builders.h b/googlemock/include/gmock/gmock-spec-builders.h
index 1168d22d..f6a5eadc 100644
--- a/googlemock/include/gmock/gmock-spec-builders.h
+++ b/googlemock/include/gmock/gmock-spec-builders.h
@@ -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);