linux/lib/kunit/string-stream.c

// SPDX-License-Identifier: GPL-2.0
/*
 * C++ stream style string builder used in KUnit for building messages.
 *
 * Copyright (C) 2019, Google LLC.
 * Author: Brendan Higgins <[email protected]>
 */

#include <kunit/static_stub.h>
#include <kunit/test.h>
#include <linux/list.h>
#include <linux/slab.h>

#include "string-stream.h"


static struct string_stream_fragment *alloc_string_stream_fragment(int len, gfp_t gfp)
{}

static void string_stream_fragment_destroy(struct string_stream_fragment *frag)
{}

int string_stream_vadd(struct string_stream *stream,
		       const char *fmt,
		       va_list args)
{}

int string_stream_add(struct string_stream *stream, const char *fmt, ...)
{}

void string_stream_clear(struct string_stream *stream)
{}

char *string_stream_get_string(struct string_stream *stream)
{}

int string_stream_append(struct string_stream *stream,
			 struct string_stream *other)
{}

bool string_stream_is_empty(struct string_stream *stream)
{}

struct string_stream *alloc_string_stream(gfp_t gfp)
{}

void string_stream_destroy(struct string_stream *stream)
{}

static void resource_free_string_stream(void *p)
{}

struct string_stream *kunit_alloc_string_stream(struct kunit *test, gfp_t gfp)
{}

void kunit_free_string_stream(struct kunit *test, struct string_stream *stream)
{}