MCPcopy Index your code
hub / github.com/ThrowTheSwitch/Unity / UnityPrintExpectedAndActualStrings

Function UnityPrintExpectedAndActualStrings

src/unity.c:597–621  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

595
596/*-----------------------------------------------*/
597static void UnityPrintExpectedAndActualStrings(const char* expected, const char* actual)
598{
599 UnityPrint(UnityStrExpected);
600 if (expected != NULL)
601 {
602 UNITY_OUTPUT_CHAR('\'');
603 UnityPrint(expected);
604 UNITY_OUTPUT_CHAR('\'');
605 }
606 else
607 {
608 UnityPrint(UnityStrNull);
609 }
610 UnityPrint(UnityStrWas);
611 if (actual != NULL)
612 {
613 UNITY_OUTPUT_CHAR('\'');
614 UnityPrint(actual);
615 UNITY_OUTPUT_CHAR('\'');
616 }
617 else
618 {
619 UnityPrint(UnityStrNull);
620 }
621}
622
623/*-----------------------------------------------*/
624static void UnityPrintExpectedAndActualStringsLen(const char* expected,

Callers 2

UnityAssertEqualStringFunction · 0.85

Calls 1

UnityPrintFunction · 0.85

Tested by

no test coverage detected