Presentation logic for tests: generates output with verbosity level in mind.
More...
|
|
#define | TRACE_STARTTYPE(NAME) |
| | helper macro for debugging output logic - the silent version is active, this won't do anything
|
| |
|
#define | TRACE_ENDTYPE(NAME) |
| | helper macro for debugging output logic - the silent version is active, this won't do anything
|
| |
Presentation logic for tests: generates output with verbosity level in mind.
- Author
- Richard Nusser
- Copyright
- 2017-2018 Richard Nusser
- License
- GPLv3 (see http://www.gnu.org/licenses/)
- See also
- https://github.com/rinusser/UEFIStarter
◆ _print_optional_multiline_test_prefix_or()
| static void _print_optional_multiline_test_prefix_or |
( |
CHAR16 * |
or | ) |
|
|
static |
Internal: prints either a suitable whitespace prefix if multiline output is enabled, or the given string if not.
- Parameters
-
| or | the alternative string to print if multiline output is disabled, may be NULL |
◆ print_test_group_start()
| void print_test_group_start |
( |
CHAR16 * |
name | ) |
|
Prints the start of a test group.
- Parameters
-
| name | the test group's name |
◆ print_assert_counts()
| void print_assert_counts |
( |
INT64 |
fails, |
|
|
INT64 |
asserts |
|
) |
| |
Prints assertion counts, if enabled.
- Parameters
-
| fails | the number of failed assertions |
| asserts | the total number of assertions |
◆ _print_outcome()
Internal: prints a test result status.
- Parameters
-
| outcome | the result to print |
◆ _print_1char_outcome()
Internal: prints a test result status, as 1 character.
- Parameters
-
| outcome | the result to print |
◆ print_group_result()
Prints a test group's results.
- Parameters
-
| results | the results to print |
◆ print_individual_result()
Prints an individual test's results.
- Parameters
-
| results | the results to print |
◆ print_test_result_summary()
Prints test result summary, if enabled.
- Parameters
-
| results | the results to summarize |
◆ print_individual_test_start()
| void print_individual_test_start |
( |
CHAR16 * |
description | ) |
|
Prints the start of an indivual test, if enabled.
- Parameters
-
| description | the test's description to print |
◆ print_assertion()
| void print_assertion |
( |
BOOLEAN |
success, |
|
|
CHAR16 * |
description, |
|
|
CHAR16 * |
message |
|
) |
| |
Prints an assertion's result.
- Parameters
-
| success | whether the assertion passed |
| description | the assertion's description to print, if enabled |
| message | the assertion's error message to print, if enabled |
◆ debug_print_results()
Internal: prints raw test results.
- Parameters
-
| results | the test results to output |