Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kunit_unary_assert_format

Proto:void kunit_unary_assert_format(const struct kunit_assert *assert, struct string_stream *stream)

Type:void

Parameter:

TypeParameterName
const struct kunit_assert *assert
struct string_stream *stream
45  unary_assert = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(assert, structkunit_unary_assert, assert)
48  SPDX-License-Identifier: GPL-2.0
49  If expected_true Then string_stream_add(stream, "\tExpected %s to be true, but is false\n", condition)
53  Else string_stream_add(stream, "\tExpected %s to be false, but is true\n", condition)
57  kunit_assert_print_msg(assert, stream)