Function

GLibtest_add_data_func_full

Declaration [src]

void
g_test_add_data_func_full (
  const char* testpath,
  gpointer test_data,
  GTestDataFunc test_func,
  GDestroyNotify data_free_func
)

Description [src]

Create a new test case, as with g_test_add_data_func(), but freeing test_data after the test run is complete.

Available since:2.34

Parameters

testpath const char*
 

/-separated test case path name for the test.

 The data is owned by the caller of the function.
 The string is a NUL terminated UTF-8 string.
test_data gpointer
 

Test data argument for the test function.

test_func GTestDataFunc
 

The test function to invoke for this test.

data_free_func GDestroyNotify
 

GDestroyNotify for test_data.