UEFIStarter
a simple UEFI framework
|
Self-tests for assertions. More...
Functions | |
void | test_boolean () |
Makes sure the boolean assertions work. More... | |
void | test_integer () |
Makes sure the integer comparison assertions work. More... | |
void | test_double () |
Makes sure the double comparison assertions work. More... | |
void | test_compounds () |
Makes sure the compound assertions work. More... | |
void | test_graphics () |
Makes sure the pixel assertions work. More... | |
BOOLEAN | run_asserts_tests () |
Test runner for this group. More... | |
Self-tests for assertions.
void test_boolean | ( | ) |
Makes sure the boolean assertions work.
void test_integer | ( | ) |
Makes sure the integer comparison assertions work.
assert_intn_equals() asserts actual == expected
and can be inverted
assert_intn_greater_than_or_equal_to() asserts actual >= expected
and can be inverted
assert_intn_less_than_or_equal_to() asserts actual <= expected
and can be inverted
assert_intn_in_closed_interval() asserts expected_lower <= actual <= expected_upper
and can be inverted
void test_double | ( | ) |
Makes sure the double comparison assertions work.
assert_double_near() asserts expected-epsilon <= actual <= expected+epsilon
and can be inverted
assert_double_greater_than() asserts actual > expected
and can be inverted
assert_double_greater_than_or_equal_to() asserts actual >= expected
and can be inverted
void test_compounds | ( | ) |
Makes sure the compound assertions work.
void test_graphics | ( | ) |
Makes sure the pixel assertions work.
assert_pixel() asserts pixel values match exactly and can be inverted
assert_pixel_near() asserts the sum of absolute differences between actual and expected pixels' channels is <=epsilon and can be inverted
BOOLEAN run_asserts_tests | ( | ) |
Test runner for this group.
Gets called via the generated test runner.