MCPcopy Create free account
hub / github.com/cpputest/cpputest / createUserText

Method createUserText

src/CppUTest/TestFailure.cpp:160–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160SimpleString TestFailure::createUserText(const SimpleString& text)
161{
162 SimpleString userMessage = "";
163 if (!text.isEmpty())
164 {
165 //This is a kludge to turn off "Message: " for this case.
166 //I don't think "Message: " adds anything, as you get to see the
167 //message. I propose we remove "Message: " lead in
168 if (!text.startsWith("LONGS_EQUAL"))
169 userMessage += "Message: ";
170 userMessage += text;
171 userMessage += "\n\t";
172 }
173 return userMessage;
174}
175
176EqualsFailure::EqualsFailure(UtestShell* test, const char* fileName, size_t lineNumber, const char* expected, const char* actual, const SimpleString& text) :
177 TestFailure(test, fileName, lineNumber)

Callers

nothing calls this directly

Calls 2

startsWithMethod · 0.80
isEmptyMethod · 0.45

Tested by

no test coverage detected