MCPcopy Create free account
hub / github.com/EIPStackGroup/OpENer / TEST

Function TEST

source/tests/utils/doublylinkedlistTests.cpp:49–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49TEST(DoublyLinkedList, CallocAllocatorCreateTest) {
50 int test_data = 8;
51 DoublyLinkedListNode *node = DoublyLinkedListNodeCreate(&test_data,
52 CallocAllocator);
53 CHECK_EQUAL( test_data, *( (int *)node->data ) );
54 CallocDeallocator(&node);
55}
56
57TEST(DoublyLinkedList, CallocFreeTest) {
58 int test_data = 8;

Callers

nothing calls this directly

Calls 10

CallocDeallocatorFunction · 0.85
ArrayFreeFunction · 0.85
DoublyLinkedListDestroyFunction · 0.85

Tested by

no test coverage detected