Grid Community Toolkit  6.2.1705709074 (tag: v6.2.20240202)
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
list_test.c File Reference

Globus List Test Cases. More...

#include "globus_common.h"
#include "globus_test_tap.h"

Functions

int list_test (void)
 Globus List Test Cases. More...
 

Detailed Description

Globus List Test Cases.

Function Documentation

int list_test ( void  )

Globus List Test Cases.

Test:
Call globus_list_size() with an empty list
Test:
Insert a datum into a globus_list_t with globus_list_insert()
Test:
Add a datum to a globus_list_t with globus_list_cons()
Test:
Verify that globus_list_size() returns 2 after adding two data items to a list.
Test:
Insert x3 into a list with globus_list_insert()
Test:
Insert x4 into a list with globus_list_insert()
Test:
Verify that the size of the list is now 4 with globus_list_size()
Test:
Search for the first item in a list with globus_list_search()
Test:
Use globus_list_first() to return the datum from the returned list node. Verify that the search result matches the value searched for.
Test:
Search for the third item in a list with globus_list_search()
Test:
Use globus_list_first() to return the datum from the returned list node. Verify that the search result matches the value searched for.
Test:
Search for the fourth item in a list with globus_list_search()
Test:
Use globus_list_first() to return the datum from the returned list node. Verify that the search result matches the value searched for.
Test:
Search for the second item in a list with globus_list_search()
Test:
Use globus_list_first() to return the datum from the returned list node. Verify that the search result matches the value searched for.
Test:
Search for the fourth item in a list with globus_list_search_pred()
Test:
Search for the second item in a list with globus_list_search_pred()
Test:
Search for the third item in a list with globus_list_search_pred()
Test:
Search for the first item in a list with globus_list_search_pred()
Test:
Search for the second item in the list with globus_list_search()
Test:
Remove the second item in the list with globus_list_remove()
Test:
Remove the first item in the list with globus_list_remove()
Test:
Remove the first item in the list with globus_list_remove()
Test:
Remove the first item in the list with globus_list_remove()
Test:
Verify that the list is empty with globus_list_empty()