mirror of
https://github.com/google/googletest.git
synced 2025-01-14 00:20:57 +08:00
Change messages
Signed-off-by: Denis Hananein <i@zloylos.me>
This commit is contained in:
parent
f3eb2b7e38
commit
0d26378919
@ -1213,11 +1213,11 @@ class TypedExpectation<R(Args...)> : public ExpectationBase {
|
||||
if (IsSaturated()) {
|
||||
// We have an excessive call.
|
||||
IncrementCallCount();
|
||||
*what << "Mock function ";
|
||||
*what << "Mock function called more times than expected ";
|
||||
if (!expectation_name.empty()) {
|
||||
*what << "with name \"" << expectation_name << "\" ";
|
||||
*what << "for \"" << expectation_name << "\" ";
|
||||
}
|
||||
*what << "called more times than expected - ";
|
||||
*what << " - ";
|
||||
mocker->DescribeDefaultActionTo(args, what);
|
||||
DescribeCallCountTo(why);
|
||||
|
||||
@ -1232,11 +1232,11 @@ class TypedExpectation<R(Args...)> : public ExpectationBase {
|
||||
}
|
||||
|
||||
// Must be done after IncrementCount()!
|
||||
*what << "Mock function ";
|
||||
*what << "Mock function call matches ";
|
||||
if (!expectation_name.empty()) {
|
||||
*what << "with name \"" << expectation_name << "\" ";
|
||||
*what << "\"" << expectation_name << "\" ";
|
||||
}
|
||||
*what << "call matches " << source_text() << "...\n";
|
||||
*what << source_text() << "...\n";
|
||||
return &(GetCurrentAction(mocker, args));
|
||||
}
|
||||
|
||||
|
@ -411,12 +411,11 @@ bool UntypedFunctionMockerBase::VerifyAndClearExpectationsLocked()
|
||||
::std::stringstream ss;
|
||||
|
||||
const ::std::string& expectation_name = untyped_expectation->GetName();
|
||||
ss << "Actual function";
|
||||
ss << "Actual function call count doesn't match ";
|
||||
if (!expectation_name.empty()) {
|
||||
ss << " with name \"" << expectation_name << "\"";
|
||||
ss << "\"" << expectation_name << "\"";
|
||||
}
|
||||
ss << " call count doesn't match " << untyped_expectation->source_text()
|
||||
<< "...\n";
|
||||
ss << untyped_expectation->source_text() << "...\n";
|
||||
// No need to show the source file location of the expectation
|
||||
// in the description, as the Expect() call that follows already
|
||||
// takes care of it.
|
||||
|
Loading…
x
Reference in New Issue
Block a user