MCPcopy Create free account
hub / github.com/apache/singa / AppendUserMessage

Function AppendUserMessage

test/gtest/gtest-all.cc:3162–3171  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

3160
3161// Appends the user-supplied message to the Google-Test-generated message.
3162std::string AppendUserMessage(const std::string& gtest_msg,
3163 const Message& user_msg) {
3164 // Appends the user message if it's non-empty.
3165 const std::string user_msg_string = user_msg.GetString();
3166 if (user_msg_string.empty()) {
3167 return gtest_msg;
3168 }
3169
3170 return gtest_msg + "\n" + user_msg_string;
3171}
3172
3173} // namespace internal
3174

Callers 1

operator=Method · 0.85

Calls 2

GetStringMethod · 0.80
emptyMethod · 0.80

Tested by

no test coverage detected