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

Function UnityAddMsgIfSpecified

src/unity.c:570–594  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

568
569/*-----------------------------------------------*/
570static void UnityAddMsgIfSpecified(const char* msg)
571{
572#ifdef UNITY_PRINT_TEST_CONTEXT
573 UnityPrint(UnityStrSpacer);
574 UNITY_PRINT_TEST_CONTEXT();
575#endif
576#ifndef UNITY_EXCLUDE_DETAILS
577 if (Unity.CurrentDetail1)
578 {
579 UnityPrint(UnityStrSpacer);
580 UnityPrint(UnityStrDetail1Name);
581 UnityPrint(Unity.CurrentDetail1);
582 if (Unity.CurrentDetail2)
583 {
584 UnityPrint(UnityStrDetail2Name);
585 UnityPrint(Unity.CurrentDetail2);
586 }
587 }
588#endif
589 if (msg)
590 {
591 UnityPrint(UnityStrSpacer);
592 UnityPrint(msg);
593 }
594}
595
596/*-----------------------------------------------*/
597static void UnityPrintExpectedAndActualStrings(const char* expected, const char* actual)

Callers 15

UnityIsOneArrayNullFunction · 0.85
UnityAssertBitsFunction · 0.85
UnityAssertEqualNumberFunction · 0.85
UnityAssertEqualIntArrayFunction · 0.85
UnityAssertFloatsWithinFunction · 0.85
UnityAssertFloatSpecialFunction · 0.85
UnityAssertDoublesWithinFunction · 0.85

Calls 1

UnityPrintFunction · 0.85

Tested by

no test coverage detected