Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\kunit\string-stream-test.c Create Date:2022-07-28 06:39:16
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:string_stream_test_get_string

Proto:static void string_stream_test_get_string(struct kunit *test)

Type:void

Parameter:

TypeParameterName
struct kunit *test
31  stream = alloc_string_stream(test, GFP_KERNEL)
34  string_stream_add(stream, "Foo")
35  string_stream_add(stream, " %s", "bar")
37  output = string_stream_get_string(stream)
38  KUNIT_ASSERT_STREQ() - An assertion that strings @left and @right are equal.*@test: The test context object.*@left: an arbitrary expression that evaluates to a null terminated string.(test, output, "Foo bar")