Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:SPDX-License-Identifier: GPL-2.0

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

Type:void

Parameter:

TypeParameterName
const struct kunit_assert *assert
struct string_stream *stream
13  const char * expect_or_assert = NULL
16  Case type == KUNIT_EXPECTATION
17  expect_or_assert = "EXPECTATION"
18  Break
19  Case type == KUNIT_ASSERTION
20  expect_or_assert = "ASSERTION"
21  Break
24  string_stream_add(stream, "%s FAILED at %s:%d\n", expect_or_assert, file, line)
Caller
NameDescribe
kunit_fail_assert_format
kunit_unary_assert_format
kunit_ptr_not_err_assert_format
kunit_binary_assert_format
kunit_binary_ptr_assert_format
kunit_binary_str_assert_format