函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\kunit\assert.c Create Date:2022-07-27 07:36:38
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:SPDX-License-Identifier: GPL-2.0

函数原型:void kunit_base_assert_format(const struct kunit_assert *assert, struct string_stream *stream)

返回类型:void

参数:

类型参数名称
const struct kunit_assert *assert
struct string_stream *stream
13  const char * expect_or_assert = NULL
16  :type恒等于KUNIT_EXPECTATION
17  expect_or_assert等于"EXPECTATION"
18  退出
19  :type恒等于KUNIT_ASSERTION
20  expect_or_assert等于"ASSERTION"
21  退出
24  string_stream_add(stream, "%s FAILED at %s:%d\n", expect_or_assert, file, line)
调用者
名称描述
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