LONGBOW_TEST_CASE(Global, athenaFIB_Create) { AthenaFIB *fib = athenaFIB_Create(); assertNotNull(fib, "Expected athenaFIB_Create to return a non-NULL value"); athenaFIB_Release(&fib); assertNull(fib, "Expected athenaFIB_Release to NULL the pointer"); }
LONGBOW_TEST_CASE(Global, athenaFIB_AcquireRelease) { TestData *data = longBowTestCase_GetClipBoardData(testCase); AthenaFIB *acquiredFib = athenaFIB_Acquire(data->testFIB); assertNotNull(acquiredFib, "Expected athenaFIB_Acquire to return a non-NULL value"); athenaFIB_Release(&acquiredFib); assertNull(acquiredFib, "Expected athenaFIB_Release to NULL the pointer"); }
static void _athenaDestroy(Athena **athena) { ccnxName_Release(&((*athena)->athenaName)); athenaTransportLinkAdapter_Destroy(&((*athena)->athenaTransportLinkAdapter)); athenaContentStore_Release(&((*athena)->athenaContentStore)); athenaPIT_Release(&((*athena)->athenaPIT)); athenaFIB_Release(&((*athena)->athenaFIB)); parcLog_Release(&((*athena)->log)); }