MCPcopy Create free account
hub / github.com/DaveGamble/cJSON / UnityPrintExpectedAndActualStrings

Function UnityPrintExpectedAndActualStrings

tests/unity/src/unity.c:422–446  ·  view source on GitHub ↗

-----------------------------------------------*/

Source from the content-addressed store, hash-verified

420
421/*-----------------------------------------------*/
422static void UnityPrintExpectedAndActualStrings(const char* expected, const char* actual)
423{
424 UnityPrint(UnityStrExpected);
425 if (expected != NULL)
426 {
427 UNITY_OUTPUT_CHAR('\'');
428 UnityPrint(expected);
429 UNITY_OUTPUT_CHAR('\'');
430 }
431 else
432 {
433 UnityPrint(UnityStrNull);
434 }
435 UnityPrint(UnityStrWas);
436 if (actual != NULL)
437 {
438 UNITY_OUTPUT_CHAR('\'');
439 UnityPrint(actual);
440 UNITY_OUTPUT_CHAR('\'');
441 }
442 else
443 {
444 UnityPrint(UnityStrNull);
445 }
446}
447
448/*-----------------------------------------------*/
449static void UnityPrintExpectedAndActualStringsLen(const char* expected,

Callers 2

UnityAssertEqualStringFunction · 0.85

Calls 1

UnityPrintFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…