linux/fs/unicode/utf8-selftest.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Kernel module for testing utf-8 support.
 *
 * Copyright 2017 Collabora Ltd.
 */

#define pr_fmt(fmt)

#include <linux/module.h>
#include <linux/printk.h>
#include <linux/unicode.h>
#include <linux/dcache.h>

#include "utf8n.h"

static unsigned int failed_tests;
static unsigned int total_tests;

/* Tests will be based on this version. */
#define UTF8_LATEST

#define _test(cond, func, line, fmt, ...)
#define test_f(cond, fmt, ...)
#define test(cond)

static const struct {} nfdi_test_data[] =;

static const struct {} nfdicf_test_data[] =;

static ssize_t utf8len(const struct unicode_map *um, enum utf8_normalization n,
		const char *s)
{}

static int utf8cursor(struct utf8cursor *u8c, const struct unicode_map *um,
		enum utf8_normalization n, const char *s)
{}

static void check_utf8_nfdi(struct unicode_map *um)
{}

static void check_utf8_nfdicf(struct unicode_map *um)
{}

static void check_utf8_comparisons(struct unicode_map *table)
{}

static void check_supported_versions(struct unicode_map *um)
{}

static int __init init_test_ucd(void)
{}

static void __exit exit_test_ucd(void)
{}

module_init();
module_exit(exit_test_ucd);

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();