MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / AppendUserMessage

Function AppendUserMessage

test/common/gtest/gtest.cpp:3473–3482  ·  view source on GitHub ↗

Appends the user-supplied message to the Google-Test-generated message.

Source from the content-addressed store, hash-verified

3471
3472// Appends the user-supplied message to the Google-Test-generated message.
3473std::string AppendUserMessage(const std::string& gtest_msg,
3474 const Message& user_msg) {
3475 // Appends the user message if it's non-empty.
3476 const std::string user_msg_string = user_msg.GetString();
3477 if (user_msg_string.empty()) {
3478 return gtest_msg;
3479 }
3480
3481 return gtest_msg + "\n" + user_msg_string;
3482}
3483
3484} // namespace internal
3485

Callers 1

operator=Method · 0.85

Calls 2

GetStringMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected