TianoCore EDK2 master
|
#include "TestBaseSafeIntLib.h"
Go to the source code of this file.
Macros | |
#define | UNIT_TEST_NAME "Int Safe Lib Unit Test Application" |
#define | UNIT_TEST_VERSION "0.1" |
UEFI OS based application for unit testing the SafeIntLib.
Copyright (c) Microsoft Corporation.
Copyright (c) 2018 - 2020, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file TestBaseSafeIntLib.c.
#define UNIT_TEST_NAME "Int Safe Lib Unit Test Application" |
Definition at line 12 of file TestBaseSafeIntLib.c.
#define UNIT_TEST_VERSION "0.1" |
Definition at line 13 of file TestBaseSafeIntLib.c.
EFI_STATUS EFIAPI DxeEntryPoint | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
Definition at line 3051 of file TestBaseSafeIntLib.c.
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 3060 of file TestBaseSafeIntLib.c.
EFI_STATUS EFIAPI PeiEntryPoint | ( | IN EFI_PEI_FILE_HANDLE | FileHandle, |
IN CONST EFI_PEI_SERVICES ** | PeiServices | ||
) |
Definition at line 3041 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeInt16Add | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 2159 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeInt16Mult | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 2762 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeInt16Sub | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 2466 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeInt16ToChar8 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 266 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeInt16ToInt8 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 228 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeInt16ToUint16 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 353 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeInt16ToUint32 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 380 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeInt16ToUint64 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 438 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeInt16ToUint8 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 320 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeInt16ToUintn | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 409 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeInt32Add | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 2203 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeInt32Mult | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 2795 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeInt32Sub | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 2510 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeInt32ToChar8 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 624 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeInt32ToInt16 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 715 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeInt32ToInt8 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 586 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeInt32ToUint16 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 753 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeInt32ToUint32 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 790 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeInt32ToUint64 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 819 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeInt32ToUint8 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 678 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeInt64Add | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 2247 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeInt64Mult | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 2828 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeInt64Sub | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 2554 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeInt64ToChar8 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 1494 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeInt64ToInt16 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 1581 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeInt64ToInt32 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 1652 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeInt64ToInt8 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 1456 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeInt64ToUint16 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 1619 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeInt64ToUint32 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 1690 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeInt64ToUint64 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 1723 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeInt64ToUint8 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 1548 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeInt8Add | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 2115 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeInt8Mult | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 2729 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeInt8Sub | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 2422 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeInt8ToUint16 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 49 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeInt8ToUint32 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 78 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeInt8ToUint64 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 136 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeInt8ToUint8 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 20 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeInt8ToUintn | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 107 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeIntnToChar8 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 1063 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeIntnToInt16 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 1150 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeIntnToInt8 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 1025 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeIntnToUint16 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 1188 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeIntnToUint64 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 1250 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeIntnToUint8 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 1117 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeIntnToUintn | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 1221 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeUint16Add | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 2022 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeUint16Mult | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 2633 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeUint16Sub | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 2326 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeUint16ToChar8 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 496 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeUint16ToInt16 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 557 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeUint16ToInt8 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 467 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeUint16ToUint8 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 528 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeUint32Add | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 2051 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeUint32Mult | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 2665 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeUint32Sub | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 2358 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeUint32ToChar8 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 877 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeUint32ToInt16 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 938 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeUint32ToInt32 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 996 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeUint32ToInt8 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 848 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeUint32ToUint16 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 967 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeUint32ToUint8 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 909 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeUint64Add | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 2083 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeUint64Mult | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 2697 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeUint64Sub | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 2390 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeUint64ToChar8 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 1781 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeUint64ToInt16 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 1842 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeUint64ToInt32 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 1900 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeUint64ToInt64 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 1958 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeUint64ToInt8 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 1752 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeUint64ToUint16 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 1871 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeUint64ToUint32 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 1929 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeUint64ToUint8 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 1813 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeUint8Add | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 1990 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeUint8Mult | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 2601 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeUint8Sub | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 2294 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeUint8ToChar8 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 194 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeUint8ToInt8 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 165 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeUintnToChar8 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 1308 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeUintnToInt16 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 1369 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeUintnToInt32 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 1427 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeUintnToInt8 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 1279 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeUintnToUint16 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 1398 of file TestBaseSafeIntLib.c.
UNIT_TEST_STATUS EFIAPI TestSafeUintnToUint8 | ( | IN UNIT_TEST_CONTEXT | Context | ) |
Definition at line 1340 of file TestBaseSafeIntLib.c.
EFI_STATUS EFIAPI UefiTestMain | ( | VOID | ) |
Main fuction sets up the unit test environment
Definition at line 2866 of file TestBaseSafeIntLib.c.