#include <kunit/test.h>
#include "./hid-uclogic-rdesc.h"
MODULE_IMPORT_NS(…);
struct uclogic_template_case { … };
static const s32 params_pen_all[UCLOGIC_RDESC_PH_ID_NUM] = …;
static const s32 params_pen_some[] = …;
static const s32 params_frame_all[UCLOGIC_RDESC_PH_ID_NUM] = …;
static const __u8 template_empty[] = …;
static const __u8 template_small[] = …;
static const __u8 template_no_ph[] = …;
static const __u8 template_pen_ph_end[] = …;
static const __u8 template_btn_ph_end[] = …;
static const __u8 template_pen_all_params[] = …;
static const __u8 expected_pen_all_params[] = …;
static const __u8 template_frame_all_params[] = …;
static const __u8 expected_frame_all_params[] = …;
static const __u8 template_pen_some_params[] = …;
static const __u8 expected_pen_some_params[] = …;
static const __u8 template_params_none[] = …;
static struct uclogic_template_case uclogic_template_cases[] = …;
static void uclogic_template_case_desc(struct uclogic_template_case *t,
char *desc)
{ … }
KUNIT_ARRAY_PARAM(uclogic_template, uclogic_template_cases,
uclogic_template_case_desc);
static void hid_test_uclogic_template(struct kunit *test)
{ … }
static struct kunit_case hid_uclogic_rdesc_test_cases[] = …;
static struct kunit_suite hid_uclogic_rdesc_test_suite = …;
kunit_test_suite(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_AUTHOR(…) …;