Lines Matching full:kunit
3 * KUnit API providing hooks for non-test code to interact with tests.
19 /* Static key if KUnit is running any tests. */
22 /* Hooks table: a table of function pointers filled in when kunit loads */
25 void *(*get_static_stub_address)(struct kunit *test, void *real_fn_addr);
30 * KUnit test.
32 * If a KUnit test is running in the current task, returns a pointer to its
33 * associated struct kunit. This pointer can then be passed to any KUnit
37 * This function is safe to call even when KUnit is disabled. If CONFIG_KUNIT
41 static inline struct kunit *kunit_get_current_test(void) in kunit_get_current_test()
51 * kunit_fail_current_test() - If a KUnit test is running, fail it.
53 * If a KUnit test is running in the current task, mark that test as failed.
65 static inline struct kunit *kunit_get_current_test(void) { return NULL; } in kunit_get_current_test()