Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:test_string_helpers_init

Proto:static int __init test_string_helpers_init(void)

Type:int

Parameter:Nothing

397  pr_info("Running tests...\n")
398  When i < UNESCAPE_ANY + 1 cycle test_string_unescape("unescape", i, false)
400  test_string_unescape("unescape inplace", get_random_int() % (UNESCAPE_ANY + 1), true)
404  When i < (ESCAPE_ANY_NP | ESCAPE_HEX) + 1 cycle test_string_escape("escape 0", escape0, i, TEST_STRING_2_DICT_0)
408  When i < (ESCAPE_ANY_NP | ESCAPE_HEX) + 1 cycle test_string_escape("escape 1", escape1, i, TEST_STRING_2_DICT_1)
412  test_string_get_size()
414  Return -EINVAL