linux/kernel/resource_kunit.c

// SPDX-License-Identifier: GPL-2.0+
/*
 * Test cases for API provided by resource.c and ioport.h
 */

#include <kunit/test.h>
#include <linux/ioport.h>
#include <linux/kernel.h>
#include <linux/string.h>

#define R0_START
#define R0_END
#define R1_START
#define R1_END
#define R2_START
#define R2_END
#define R3_START
#define R3_END
#define R4_START
#define R4_END

static struct resource r0 =;
static struct resource r1 =;
static struct resource r2 =;
static struct resource r3 =;
static struct resource r4 =;

struct result {};

static struct result results_for_union[] =;

static struct result results_for_intersection[] =;

static void resource_do_test(struct kunit *test, bool ret, struct resource *r,
			     bool exp_ret, struct resource *exp_r,
			     struct resource *r1, struct resource *r2)
{}

static void resource_do_union_test(struct kunit *test, struct result *r)
{}

static void resource_test_union(struct kunit *test)
{}

static void resource_do_intersection_test(struct kunit *test, struct result *r)
{}

static void resource_test_intersection(struct kunit *test)
{}

static struct kunit_case resource_test_cases[] =;

static struct kunit_suite resource_test_suite =;
kunit_test_suite();

MODULE_DESCRIPTION();
MODULE_LICENSE();