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

Function UnityPrintExpectedAndActualStringsLen

tests/unity/src/unity.c:449–475  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

447
448/*-----------------------------------------------*/
449static void UnityPrintExpectedAndActualStringsLen(const char* expected,
450 const char* actual,
451 const UNITY_UINT32 length)
452{
453 UnityPrint(UnityStrExpected);
454 if (expected != NULL)
455 {
456 UNITY_OUTPUT_CHAR('\'');
457 UnityPrintLen(expected, length);
458 UNITY_OUTPUT_CHAR('\'');
459 }
460 else
461 {
462 UnityPrint(UnityStrNull);
463 }
464 UnityPrint(UnityStrWas);
465 if (actual != NULL)
466 {
467 UNITY_OUTPUT_CHAR('\'');
468 UnityPrintLen(actual, length);
469 UNITY_OUTPUT_CHAR('\'');
470 }
471 else
472 {
473 UnityPrint(UnityStrNull);
474 }
475}
476
477/*-----------------------------------------------
478 * Assertion & Control Helpers

Callers 1

Calls 2

UnityPrintFunction · 0.85
UnityPrintLenFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…