MCPcopy Index your code
hub / github.com/DaveGamble/cJSON / UnityAddMsgIfSpecified

Function UnityAddMsgIfSpecified

tests/unity/src/unity.c:399–419  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

397
398/*-----------------------------------------------*/
399static void UnityAddMsgIfSpecified(const char* msg)
400{
401 if (msg)
402 {
403 UnityPrint(UnityStrSpacer);
404#ifndef UNITY_EXCLUDE_DETAILS
405 if (Unity.CurrentDetail1)
406 {
407 UnityPrint(UnityStrDetail1Name);
408 UnityPrint(Unity.CurrentDetail1);
409 if (Unity.CurrentDetail2)
410 {
411 UnityPrint(UnityStrDetail2Name);
412 UnityPrint(Unity.CurrentDetail2);
413 }
414 UnityPrint(UnityStrSpacer);
415 }
416#endif
417 UnityPrint(msg);
418 }
419}
420
421/*-----------------------------------------------*/
422static 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
UnityAssertDoubleSpecialFunction · 0.85
UnityAssertNumbersWithinFunction · 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…