testAddDataFunc

fnvoid testAddDataFunc(string testpath, const(void) * testData, glib.types.TestDataFunc testFunc)

Create a new test case, similar to glib.global.testCreateCase. However the test is assumed to use no fixture, and test suites are automatically created on the fly and added to the root fixture, based on the slash-separated portions of testpath. The test_data argument will be passed as first argument to test_func.

If testpath includes the component "subprocess" anywhere in it, the test will be skipped by default, and only run if explicitly required via the -p command-line option or glib.global.testTrapSubprocess.

No component of testpath may start with a dot (`.`) if the glib.types.TEST_OPTION_ISOLATE_DIRS option is being used; and it is recommended to do so even if it isn’t.

Parameters

testpath/-separated test case path name for the test.
testDataTest data argument for the test function.
testFuncThe test function to invoke for this test.