linux/kernel/time/time_test.c

// SPDX-License-Identifier: LGPL-2.1+

#include <kunit/test.h>
#include <linux/time.h>

/*
 * Traditional implementation of leap year evaluation.
 */
static bool is_leap(long year)
{}

/*
 * Gets the last day of a month.
 */
static int last_day_of_month(long year, int month)
{}

/*
 * Advances a date by one day.
 */
static void advance_date(long *year, int *month, int *mday, int *yday)
{}

/*
 * Checks every day in a 160000 years interval centered at 1970-01-01
 * against the expected result.
 */
static void time64_to_tm_test_date_range(struct kunit *test)
{}

static struct kunit_case time_test_cases[] =;

static struct kunit_suite time_test_suite =;

kunit_test_suite();
MODULE_DESCRIPTION();
MODULE_LICENSE();