5.5 Get a list of tests supported by the library

libannocheck_error
libannocheck_get_known_tests
  (struct libannocheck_internals * HANDLE,
   libannocheck_test **            TESTS_RETURN,
   unsigned int *                  NUM_TESTS_RETURN)

Returns a (read/write) array of tests known to libannocheck in TESTS_RETURN. Returns the number of elements in the array in NUM_TESTS_RETURN. Returns libannocheck_error_none if the retrieval succeeded, or an error result otherwise. The returned array should not be freed.

The array is used by libannocheck internally, so if fields are changed this will affect the library’s behaviour. In particular tests can be enabled and disabled without needing to call libannocheck_enable_test or libannocheck_disable_test.

The test_result_reason and test_result_source fields will initially be NULL. They may have their values changed as a result of a call to libannocheck_run_tests.