linux/drivers/gpu/drm/tests/drm_rect_test.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Test cases for the drm_rect functions
 *
 * Copyright (c) 2022 Maíra Canal <[email protected]>
 */

#include <kunit/test.h>

#include <drm/drm_rect.h>
#include <drm/drm_mode.h>

#include <linux/string_helpers.h>
#include <linux/errno.h>

static void drm_rect_compare(struct kunit *test, const struct drm_rect *r,
			     const struct drm_rect *expected)
{}

static void drm_test_rect_clip_scaled_div_by_zero(struct kunit *test)
{}

static void drm_test_rect_clip_scaled_not_clipped(struct kunit *test)
{}

static void drm_test_rect_clip_scaled_clipped(struct kunit *test)
{}

static void drm_test_rect_clip_scaled_signed_vs_unsigned(struct kunit *test)
{}

struct drm_rect_intersect_case {};

static const struct drm_rect_intersect_case drm_rect_intersect_cases[] =;

static void drm_rect_intersect_case_desc(const struct drm_rect_intersect_case *t, char *desc)
{}

KUNIT_ARRAY_PARAM(drm_rect_intersect, drm_rect_intersect_cases, drm_rect_intersect_case_desc);

static void drm_test_rect_intersect(struct kunit *test)
{}

struct drm_rect_scale_case {};

static const struct drm_rect_scale_case drm_rect_scale_cases[] =;

static void drm_rect_scale_case_desc(const struct drm_rect_scale_case *t, char *desc)
{}

KUNIT_ARRAY_PARAM(drm_rect_scale, drm_rect_scale_cases, drm_rect_scale_case_desc);

static void drm_test_rect_calc_hscale(struct kunit *test)
{}

static void drm_test_rect_calc_vscale(struct kunit *test)
{}

struct drm_rect_rotate_case {};

static const struct drm_rect_rotate_case drm_rect_rotate_cases[] =;

static void drm_rect_rotate_case_desc(const struct drm_rect_rotate_case *t, char *desc)
{}

KUNIT_ARRAY_PARAM(drm_rect_rotate, drm_rect_rotate_cases, drm_rect_rotate_case_desc);

static void drm_test_rect_rotate(struct kunit *test)
{}

static void drm_test_rect_rotate_inv(struct kunit *test)
{}

static struct kunit_case drm_rect_tests[] =;

static struct kunit_suite drm_rect_test_suite =;

kunit_test_suite();

MODULE_DESCRIPTION();
MODULE_LICENSE();