#include <linux/slab.h>
#include <linux/types.h>
#include <linux/list.h>
#include <kunit/test.h>
#include "policy.h"
struct policy_case { … };
static const struct policy_case policy_cases[] = …;
static void pol_to_desc(const struct policy_case *c, char *desc)
{ … }
KUNIT_ARRAY_PARAM(ipe_policies, policy_cases, pol_to_desc);
static void ipe_parser_unsigned_test(struct kunit *test)
{ … }
static void ipe_parser_widestring_test(struct kunit *test)
{ … }
static struct kunit_case ipe_parser_test_cases[] = …;
static struct kunit_suite ipe_parser_test_suite = …;
kunit_test_suite(…) …;