Home
last modified time | relevance | path

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

/linux/lib/kunit/
H A Dstring-stream.h21 struct string_stream { struct
32 struct string_stream *kunit_alloc_string_stream(struct kunit *test, gfp_t gfp); argument
33 void kunit_free_string_stream(struct kunit *test, struct string_stream *stream);
35 struct string_stream *alloc_string_stream(gfp_t gfp);
36 void free_string_stream(struct string_stream *stream);
38 int __printf(2, 3) string_stream_add(struct string_stream *stream,
41 int __printf(2, 0) string_stream_vadd(struct string_stream *stream,
45 void string_stream_clear(struct string_stream *stream);
47 char *string_stream_get_string(struct string_stream *stream);
49 int string_stream_append(struct string_stream *stream,
[all …]
H A Dstring-stream.c41 int string_stream_vadd(struct string_stream *stream, in string_stream_vadd()
90 int string_stream_add(struct string_stream *stream, const char *fmt, ...) in string_stream_add()
102 void string_stream_clear(struct string_stream *stream) in string_stream_clear()
117 char *string_stream_get_string(struct string_stream *stream) in string_stream_get_string()
135 int string_stream_append(struct string_stream *stream, in string_stream_append()
136 struct string_stream *other) in string_stream_append()
152 bool string_stream_is_empty(struct string_stream *stream) in string_stream_is_empty()
157 struct string_stream *alloc_string_stream(gfp_t gfp) in alloc_string_stream()
159 struct string_stream *stream; in alloc_string_stream()
172 void string_stream_destroy(struct string_stream *stream) in string_stream_destroy()
[all …]
H A Dassert_test.c41 static char *get_str_from_stream(struct kunit *test, struct string_stream *stream) in get_str_from_stream()
53 struct string_stream *stream; in kunit_test_assert_prologue()
84 struct string_stream *stream, in verify_assert_print_msg()
101 struct string_stream *stream; in kunit_test_assert_print_msg()
120 struct string_stream *stream, int num_checks, ...) in validate_assert()
139 struct string_stream *stream; in kunit_test_unary_assert_format()
160 struct string_stream *stream; in kunit_test_ptr_not_err_assert_format()
185 struct string_stream *stream; in kunit_test_binary_assert_format()
224 struct string_stream *stream; in kunit_test_binary_ptr_assert_format()
261 struct string_stream *stream; in kunit_test_binary_str_assert_format()
[all …]
H A Dassert.c16 struct string_stream *stream) in kunit_assert_prologue()
36 struct string_stream *stream) in kunit_assert_print_msg()
44 struct string_stream *stream) in kunit_fail_assert_format()
52 struct string_stream *stream) in kunit_unary_assert_format()
72 struct string_stream *stream) in kunit_ptr_not_err_assert_format()
118 struct string_stream *stream) in kunit_binary_assert_format()
146 struct string_stream *stream) in kunit_binary_ptr_assert_format()
186 struct string_stream *stream) in kunit_binary_str_assert_format()
214 void kunit_assert_hexdump(struct string_stream *stream, in kunit_assert_hexdump()
238 struct string_stream *stream) in kunit_mem_assert_format()
H A Ddebugfs.c44 static void debugfs_print_result(struct seq_file *seq, struct string_stream *log) in debugfs_print_result()
171 struct string_stream *stream; in kunit_debugfs_create_suite()
H A Dtest.c118 void kunit_log_append(struct string_stream *log, const char *fmt, ...) in kunit_log_append()
252 struct string_stream *stream) in kunit_print_string_stream()
278 struct string_stream *stream; in kunit_fail()
333 void kunit_init_test(struct kunit *test, const char *name, struct string_stream *log) in kunit_init_test()
/linux/include/kunit/
H A 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);
111 struct string_stream *stream);
147 struct string_stream *stream);
170 struct string_stream *stream);
193 struct string_stream *stream);
219 struct string_stream *stream);
[all …]
H A Dtest.h37 struct string_stream;
135 struct string_stream *log;
255 struct string_stream *log;
282 struct string_stream *log; /* Points at case log after initialization */
320 void kunit_init_test(struct kunit *test, const char *name, struct string_stream *log);
551 void __printf(2, 3) kunit_log_append(struct string_stream *log, const char *fmt, ...);