diff options
author | 2023-08-28 11:41:03 +0100 | |
---|---|---|
committer | 2023-09-18 10:45:11 -0600 | |
commit | 4551caca6ab67fb0b5199ca43580c4f8d27bf28a (patch) | |
tree | 9bec0801593068a8a9a6c720a71bbc702ee41045 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | kunit: string-stream: Don't create a fragment for empty strings (diff) | |
download | wireguard-linux-4551caca6ab67fb0b5199ca43580c4f8d27bf28a.tar.xz wireguard-linux-4551caca6ab67fb0b5199ca43580c4f8d27bf28a.zip |
kunit: string-stream: Improve testing of string_stream
Replace the minimal tests with more-thorough testing.
string_stream_init_test() tests that struct string_stream is
initialized correctly.
string_stream_line_add_test() adds a series of numbered lines and
checks that the resulting string contains all the lines.
string_stream_variable_length_line_test() adds a large number of
lines of varying length to create many fragments, then tests that all
lines are present.
string_stream_append_test() tests various cases of using
string_stream_append() to append the content of one stream to another.
Adds string_stream_append_empty_string_test() to test that adding an
empty string to a string_stream doesn't create a new empty fragment.
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Reviewed-by: Rae Moar <rmoar@google.com>
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions