#include <kunit/test.h>
#include "mean_and_variance.h"
#define MAX_SQR …
static void mean_and_variance_basic_test(struct kunit *test)
{ … }
static void mean_and_variance_weighted_test(struct kunit *test)
{ … }
static void mean_and_variance_weighted_advanced_test(struct kunit *test)
{ … }
static void do_mean_and_variance_test(struct kunit *test,
s64 initial_value,
s64 initial_n,
s64 n,
unsigned weight,
s64 *data,
s64 *mean,
s64 *stddev,
s64 *weighted_mean,
s64 *weighted_stddev)
{ … }
static void mean_and_variance_test_1(struct kunit *test)
{ … }
static void mean_and_variance_test_2(struct kunit *test)
{ … }
static void mean_and_variance_fast_divpow2(struct kunit *test)
{ … }
static void mean_and_variance_u128_basic_test(struct kunit *test)
{ … }
static struct kunit_case mean_and_variance_test_cases[] = …;
static struct kunit_suite mean_and_variance_test_suite = …;
kunit_test_suite(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;