UEFIStarter
a simple UEFI framework
Functions
graphics.c File Reference

Self-tests for graphics test assertions/utilities. More...

#include <Uefi.h>
#include <Library/UefiLib.h>
#include <UEFIStarter/tests/tests.h>
#include <UEFIStarter/tests/graphics.h>

Functions

void test_bounding_box ()
 Makes sure the difference tests and bounding box functions work. More...
 
BOOLEAN run_graphics_tests ()
 Test runner for this group. More...
 

Detailed Description

Self-tests for graphics test assertions/utilities.

Author
Richard Nusser
License
GPLv3 (see http://www.gnu.org/licenses/)
See also
https://github.com/rinusser/UEFIStarter

Function Documentation

◆ test_bounding_box()

void test_bounding_box ( )

Makes sure the difference tests and bounding box functions work.

Test:

find_bounding_box_for_changes() finds initial bounding box if there were no changes

find_bounding_box_for_changes() finds 1x1 bounding box if just one pixel changed

find_bounding_box_for_changes() finds narrow bounding box if a line of pixel changed

find_bounding_box_for_changes() finds arbitrary bounding box for given changes

find_bounding_box_for_changes() finds image-sized bounding box if changes span entire image

assert_box_equals() compares all struct members

◆ run_graphics_tests()

BOOLEAN run_graphics_tests ( )

Test runner for this group.

Gets called via the generated test runner.

Returns
whether the test group was executed