[ Version ( since = "2.16" ) ]
public void add_func (string testpath, owned TestFunc test_funcvoid)
Creates a new test case.
This function is similar to [func@GLib.test_create_case]. 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 /-separated portions of testpath.
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 [func@GLib.test_trap_subprocess].
No component of testpath may start with a dot (`.`) if the [const@GLib.TEST_OPTION_ISOLATE_DIRS] option is being used; and
it is recommended to do so even if it isn’t.
| testpath |
a /-separated name for the test |
| test_func |
the test function to invoke for this test |