#include <linux/platform_device.h>
#include <kunit/platform_device.h>
#include <kunit/test.h>
static void kunit_platform_device_alloc_test(struct kunit *test)
{ … }
static void kunit_platform_device_add_test(struct kunit *test)
{ … }
static void kunit_platform_device_add_twice_fails_test(struct kunit *test)
{ … }
static int kunit_platform_device_find_by_name(struct device *dev, const void *data)
{ … }
static void kunit_platform_device_add_cleans_up(struct kunit *test)
{ … }
static struct kunit_case kunit_platform_device_test_cases[] = …;
static struct kunit_suite kunit_platform_device_suite = …;
struct kunit_platform_driver_test_context { … };
static const char * const test_data = …;
static inline struct kunit_platform_driver_test_context *
to_test_context(struct platform_device *pdev)
{ … }
static int kunit_platform_driver_probe(struct platform_device *pdev)
{ … }
static void kunit_platform_driver_register_test(struct kunit *test)
{ … }
static void kunit_platform_device_prepare_wait_for_probe_completes_when_already_probed(struct kunit *test)
{ … }
static struct kunit_case kunit_platform_driver_test_cases[] = …;
static struct kunit_suite kunit_platform_driver_suite = …;
kunit_test_suites(…);
MODULE_LICENSE(…) …;
MODULE_DESCRIPTION(…) …;