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

Method SignedBytesEqualFailure

src/CppUTest/TestFailure.cpp:314–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312}
313
314SignedBytesEqualFailure::SignedBytesEqualFailure (UtestShell* test, const char* fileName, size_t lineNumber, signed char expected, signed char actual, const SimpleString& text)
315: TestFailure(test, fileName, lineNumber)
316{
317 message_ = createUserText(text);
318
319 SimpleString aDecimal = StringFrom((int)actual);
320 SimpleString eDecimal = StringFrom((int)expected);
321
322 SimpleString::padStringsToSameLength(aDecimal, eDecimal, ' ');
323
324 SimpleString actualReported = aDecimal + " " + BracketsFormattedHexStringFrom(actual);
325 SimpleString expectedReported = eDecimal + " " + BracketsFormattedHexStringFrom(expected);
326 message_ += createButWasString(expectedReported, actualReported);
327}
328
329StringEqualFailure::StringEqualFailure(UtestShell* test, const char* fileName, size_t lineNumber, const char* expected, const char* actual, const SimpleString& text)
330: TestFailure(test, fileName, lineNumber)

Callers

nothing calls this directly

Calls 2

StringFromFunction · 0.70

Tested by

no test coverage detected