aboutsummaryrefslogtreecommitdiff
path: root/lib/kunit/string-stream.c
AgeCommit message (Collapse)AuthorFilesLines
2019-09-30kunit: test: add string_stream a std::stream like string builderBrendan Higgins1-0/+217
A number of test features need to do pretty complicated string printing where it may not be possible to rely on a single preallocated string with parameters. So provide a library for constructing the string as you go similar to C++'s std::string. string_stream is really just a string builder, nothing more. Signed-off-by: Brendan Higgins <[email protected]> Reviewed-by: Greg Kroah-Hartman <[email protected]> Reviewed-by: Logan Gunthorpe <[email protected]> Reviewed-by: Stephen Boyd <[email protected]> Signed-off-by: Shuah Khan <[email protected]>