MCPcopy Create free account
hub / github.com/BVLC/caffe / AppendUserMessage

Function AppendUserMessage

src/gtest/gtest-all.cpp:3058–3070  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

3056
3057// Appends the user-supplied message to the Google-Test-generated message.
3058String AppendUserMessage(const String& gtest_msg,
3059 const Message& user_msg) {
3060 // Appends the user message if it's non-empty.
3061 const String user_msg_string = user_msg.GetString();
3062 if (user_msg_string.empty()) {
3063 return gtest_msg;
3064 }
3065
3066 Message msg;
3067 msg << gtest_msg << "\n" << user_msg_string;
3068
3069 return msg.GetString();
3070}
3071
3072} // namespace internal
3073

Callers 1

operator=Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected