Function report |
Source Code:lib\kunit\test.c |
Create Date:2022-07-28 06:38:45 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:kunit_print_string_stream
Proto:static void kunit_print_string_stream(struct kunit *test, struct string_stream *stream)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct kunit * | test | |
| struct string_stream * | stream |
| 103 | buf = string_stream_get_string(stream) |
| 104 | If Not buf Then |
| 105 | kunit_err() - Prints an ERROR level message associated with @test.*@test: The test context object.*@fmt: A printk() style format string.* Prints an error level message.(test, "Could not allocate buffer, dumping stream:\n") |
| 110 | kunit_err() - Prints an ERROR level message associated with @test.*@test: The test context object.*@fmt: A printk() style format string.* Prints an error level message.(test, "\n") |
| 111 | Else |
| 112 | kunit_err() - Prints an ERROR level message associated with @test.*@test: The test context object.*@fmt: A printk() style format string.* Prints an error level message.(test, "%s", buf) |
| 113 | kunit_kfree(test, buf) |
| Name | Describe |
|---|---|
| kunit_fail |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |