#include <kunit/test.h>
#include <linux/hashtable.h>
struct hashtable_test_entry { … };
static void hashtable_test_hash_init(struct kunit *test)
{ … }
static void hashtable_test_hash_empty(struct kunit *test)
{ … }
static void hashtable_test_hash_hashed(struct kunit *test)
{ … }
static void hashtable_test_hash_add(struct kunit *test)
{ … }
static void hashtable_test_hash_del(struct kunit *test)
{ … }
static void hashtable_test_hash_for_each(struct kunit *test)
{ … }
static void hashtable_test_hash_for_each_safe(struct kunit *test)
{ … }
static void hashtable_test_hash_for_each_possible(struct kunit *test)
{ … }
static void hashtable_test_hash_for_each_possible_safe(struct kunit *test)
{ … }
static struct kunit_case hashtable_test_cases[] = …;
static struct kunit_suite hashtable_test_module = …;
kunit_test_suites(…);
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;