void eventTree_destruct(EventTree *eventTree) { Event *event; while((event = eventTree_getFirst(eventTree)) != NULL) { event_destruct(event); } stSortedSet_destruct(eventTree->events); free(eventTree); }
void testEventTree_getFirst(CuTest* testCase) { cactusEventTreeTestSetup(); CuAssertTrue(testCase, eventTree_getFirst(eventTree) == rootEvent); cactusEventTreeTestTeardown(); }