diff options
| author | Richard Fitzgerald <[email protected]> | 2023-08-28 10:41:05 +0000 |
|---|---|---|
| committer | Shuah Khan <[email protected]> | 2023-09-18 16:45:23 +0000 |
| commit | 1f58cdb173a4ce1bc670fa4662af0fe3556253cf (patch) | |
| tree | e810af53c91aa52478cde652f6282626aba16a79 /lib/kunit/string-stream.c | |
| parent | kunit: string-stream: Add option to make all lines end with newline (diff) | |
| download | kernel-1f58cdb173a4ce1bc670fa4662af0fe3556253cf.tar.gz kernel-1f58cdb173a4ce1bc670fa4662af0fe3556253cf.zip | |
kunit: string-stream-test: Add cases for string_stream newline appending
Add test cases for testing the string_stream feature that appends a
newline to strings that do not already end with a newline.
string_stream_no_auto_newline_test() tests with this feature disabled.
Newlines should not be added or dropped.
string_stream_auto_newline_test() tests with this feature enabled.
Newlines should be added to lines that do not end with a newline.
string_stream_append_auto_newline_test() tests appending the
content of one stream to another stream when the target stream
has newline appending enabled.
Signed-off-by: Richard Fitzgerald <[email protected]>
Reviewed-by: Rae Moar <[email protected]>
Reviewed-by: David Gow <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'lib/kunit/string-stream.c')
0 files changed, 0 insertions, 0 deletions
