Home
last modified time | relevance | path

Searched refs:string_stream (Results 1 – 6 of 6) sorted by relevance

/linux-6.1.9/lib/kunit/
Dstring-stream.h21 struct string_stream { struct
32 struct string_stream *alloc_string_stream(struct kunit *test, gfp_t gfp); argument
34 int __printf(2, 3) string_stream_add(struct string_stream *stream,
37 int __printf(2, 0) string_stream_vadd(struct string_stream *stream,
41 char *string_stream_get_string(struct string_stream *stream);
43 int string_stream_append(struct string_stream *stream,
44 struct string_stream *other);
46 bool string_stream_is_empty(struct string_stream *stream);
48 void string_stream_destroy(struct string_stream *stream);
Dstring-stream.c42 int string_stream_vadd(struct string_stream *stream, in string_stream_vadd()
73 int string_stream_add(struct string_stream *stream, const char *fmt, ...) in string_stream_add()
85 static void string_stream_clear(struct string_stream *stream) in string_stream_clear()
100 char *string_stream_get_string(struct string_stream *stream) in string_stream_get_string()
118 int string_stream_append(struct string_stream *stream, in string_stream_append()
119 struct string_stream *other) in string_stream_append()
131 bool string_stream_is_empty(struct string_stream *stream) in string_stream_is_empty()
141 struct string_stream *alloc_string_stream(struct kunit *test, gfp_t gfp) in alloc_string_stream()
143 struct string_stream *stream; in alloc_string_stream()
157 void string_stream_destroy(struct string_stream *stream) in string_stream_destroy()
Dassert.c15 struct string_stream *stream) in kunit_assert_prologue()
34 struct string_stream *stream) in kunit_assert_print_msg()
42 struct string_stream *stream) in kunit_fail_assert_format()
50 struct string_stream *stream) in kunit_unary_assert_format()
70 struct string_stream *stream) in kunit_ptr_not_err_assert_format()
116 struct string_stream *stream) in kunit_binary_assert_format()
144 struct string_stream *stream) in kunit_binary_ptr_assert_format()
184 struct string_stream *stream) in kunit_binary_str_assert_format()
Dstring-stream-test.c16 struct string_stream *stream = alloc_string_stream(test, GFP_KERNEL); in string_stream_test_empty_on_creation()
23 struct string_stream *stream = alloc_string_stream(test, GFP_KERNEL); in string_stream_test_not_empty_after_add()
32 struct string_stream *stream = alloc_string_stream(test, GFP_KERNEL); in string_stream_test_get_string()
Dtest.c237 struct string_stream *stream) in kunit_print_string_stream()
263 struct string_stream *stream; in kunit_fail()
/linux-6.1.9/include/kunit/
Dassert.h16 struct string_stream;
53 struct string_stream *stream);
57 struct string_stream *stream);
71 struct string_stream *stream);
91 struct string_stream *stream);
124 struct string_stream *stream);
174 struct string_stream *stream);
218 struct string_stream *stream);
241 struct string_stream *stream);