#include <kunit/test.h>
#include <linux/rational.h>
struct rational_test_param { … };
static const struct rational_test_param test_parameters[] = …;
static void get_desc(const struct rational_test_param *param, char *desc)
{ … }
KUNIT_ARRAY_PARAM(rational, test_parameters, get_desc);
static void rational_test(struct kunit *test)
{ … }
static struct kunit_case rational_test_cases[] = …;
static struct kunit_suite rational_test_suite = …;
kunit_test_suites(…);
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;