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

Function UnityAssertBits

tests/unity/src/unity.c:513–531  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

511 *-----------------------------------------------*/
512
513void UnityAssertBits(const UNITY_INT mask,
514 const UNITY_INT expected,
515 const UNITY_INT actual,
516 const char* msg,
517 const UNITY_LINE_TYPE lineNumber)
518{
519 RETURN_IF_FAIL_OR_IGNORE;
520
521 if ((mask & expected) != (mask & actual))
522 {
523 UnityTestResultsFailBegin(lineNumber);
524 UnityPrint(UnityStrExpected);
525 UnityPrintMask((UNITY_UINT)mask, (UNITY_UINT)expected);
526 UnityPrint(UnityStrWas);
527 UnityPrintMask((UNITY_UINT)mask, (UNITY_UINT)actual);
528 UnityAddMsgIfSpecified(msg);
529 UNITY_FAIL_AND_BAIL;
530 }
531}
532
533/*-----------------------------------------------*/
534void UnityAssertEqualNumber(const UNITY_INT expected,

Callers

nothing calls this directly

Calls 4

UnityPrintFunction · 0.85
UnityPrintMaskFunction · 0.85
UnityAddMsgIfSpecifiedFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…