#include <kunit/test.h>
#include "./hid-uclogic-params.h"
#include "./hid-uclogic-rdesc.h"
#define MAX_STR_DESC_SIZE …
struct uclogic_parse_ugee_v2_desc_case { … };
static struct uclogic_parse_ugee_v2_desc_case uclogic_parse_ugee_v2_desc_cases[] = …;
static void uclogic_parse_ugee_v2_desc_case_desc(struct uclogic_parse_ugee_v2_desc_case *t,
char *desc)
{ … }
KUNIT_ARRAY_PARAM(uclogic_parse_ugee_v2_desc, uclogic_parse_ugee_v2_desc_cases,
uclogic_parse_ugee_v2_desc_case_desc);
static void hid_test_uclogic_parse_ugee_v2_desc(struct kunit *test)
{ … }
struct fake_device { … };
static void hid_test_uclogic_params_cleanup_event_hooks(struct kunit *test)
{ … }
static struct kunit_case hid_uclogic_params_test_cases[] = …;
static struct kunit_suite hid_uclogic_params_test_suite = …;
kunit_test_suite(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_AUTHOR(…) …;