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

Function UnityPrintNumberByStyle

tests/unity/src/unity.c:157–173  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

155
156/*-----------------------------------------------*/
157void UnityPrintNumberByStyle(const UNITY_INT number, const UNITY_DISPLAY_STYLE_T style)
158{
159 if ((style & UNITY_DISPLAY_RANGE_INT) == UNITY_DISPLAY_RANGE_INT)
160 {
161 UnityPrintNumber(number);
162 }
163 else if ((style & UNITY_DISPLAY_RANGE_UINT) == UNITY_DISPLAY_RANGE_UINT)
164 {
165 UnityPrintNumberUnsigned((UNITY_UINT)number);
166 }
167 else
168 {
169 UNITY_OUTPUT_CHAR('0');
170 UNITY_OUTPUT_CHAR('x');
171 UnityPrintNumberHex((UNITY_UINT)number, (char)((style & 0xF) * 2));
172 }
173}
174
175/*-----------------------------------------------*/
176void UnityPrintNumber(const UNITY_INT number_to_print)

Callers 5

UnityAssertEqualNumberFunction · 0.85
UnityAssertEqualIntArrayFunction · 0.85
UnityAssertNumbersWithinFunction · 0.85
UnityAssertEqualMemoryFunction · 0.85

Calls 3

UnityPrintNumberFunction · 0.85
UnityPrintNumberUnsignedFunction · 0.85
UnityPrintNumberHexFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…