linux/lib/test_hexdump.c

/*
 * Test cases for lib/hexdump.c module.
 */
#define pr_fmt(fmt)

#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/random.h>
#include <linux/string.h>

static const unsigned char data_b[] =;

static const unsigned char data_a[] =;

static const char * const test_data_1[] __initconst =;

static const char * const test_data_2_le[] __initconst =;

static const char * const test_data_2_be[] __initconst =;

static const char * const test_data_4_le[] __initconst =;

static const char * const test_data_4_be[] __initconst =;

static const char * const test_data_8_le[] __initconst =;

static const char * const test_data_8_be[] __initconst =;

#define FILL_CHAR

static unsigned total_tests __initdata;
static unsigned failed_tests __initdata;

static void __init test_hexdump_prepare_test(size_t len, int rowsize,
					     int groupsize, char *test,
					     size_t testlen, bool ascii)
{}

#define TEST_HEXDUMP_BUF_SIZE

static void __init test_hexdump(size_t len, int rowsize, int groupsize,
				bool ascii)
{}

static void __init test_hexdump_set(int rowsize, bool ascii)
{}

static void __init test_hexdump_overflow(size_t buflen, size_t len,
					 int rowsize, int groupsize,
					 bool ascii)
{}

static void __init test_hexdump_overflow_set(size_t buflen, bool ascii)
{}

static int __init test_hexdump_init(void)
{}
module_init();

static void __exit test_hexdump_exit(void)
{}
module_exit(test_hexdump_exit);

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