Presentation logic for tests.
More...
#include <Uefi.h>
#include "types.h"
Go to the source code of this file.
Presentation logic for tests.
- Author
- Richard Nusser
- Copyright
- 2017-2018 Richard Nusser
- License
- GPLv3 (see http://www.gnu.org/licenses/)
- See also
- https://github.com/rinusser/UEFIStarter
◆ 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_group_result()
Prints a test group's results.
- Parameters
-
results | the results to print |
◆ 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_individual_result()
Prints an individual test's results.
- Parameters
-
results | the results to print |
◆ 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_test_result_summary()
Prints test result summary, if enabled.
- Parameters
-
results | the results to summarize |
◆ 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 |