CORDET Framework - C2 Implementation
|
Declaration of the test cases for the Utility Functions (see CrFwUtilityFunctions.h
).
More...
Go to the source code of this file.
Functions | |
CrFwBool_t | CrFwUtilityFunctionsTestCase1 () |
Test the CrFwFindCmdRepKindIndex function. More... | |
CrFwBool_t | CrFwUtilityFunctionsTestCase2 () |
Test the convenience utility functions which are not exercised in other test cases. More... | |
Declaration of the test cases for the Utility Functions (see CrFwUtilityFunctions.h
).
This file is part of the CORDET Framework.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
For information on alternative licensing, please contact P&P Software GmbH.
Definition in file CrFwUtilityFunctionsTestCases.h.
CrFwBool_t CrFwUtilityFunctionsTestCase1 | ( | ) |
Test the CrFwFindCmdRepKindIndex
function.
The following actions are performed in this test:
CrFwCmdRepKindKey_t
is set up and filled with key values in increasing order to simulate an array of report or command kinds. The size of this test array is an even integer.:.CrFwFindCmdRepKindIndex
for a key which is present in the array in an odd-numbered intermediate position.:.CrFwFindCmdRepKindIndex
for a key which is present in the array in an even-numbered intermediate position.:.CrFwFindCmdRepKindIndex
for the first key in the array.:.CrFwFindCmdRepKindIndex
for a key which is smaller than all the key in the test array.:.CrFwFindCmdRepKindIndex
for a key which is larger than all the key in the test array.:.CrFwFindCmdRepKindIndex
for a key which is within the range of keys stored in the test array but is not present in the array.Definition at line 39 of file CrFwUtilityFunctionsTestCases.c.
CrFwBool_t CrFwUtilityFunctionsTestCase2 | ( | ) |
Test the convenience utility functions which are not exercised in other test cases.
The following actions are performed in this test:
CrFwSmCheckAlwaysTrue
is called with a dummy argument and it is verified that it returns 1.CrFwSmEmptyAction
is called with a dummy argument and it is verified that it returns without doing anything.CrFwSmSuccessAction
is called with a command as dummy argument and it is verified that it returns after setting its success outcome to 1.Definition at line 111 of file CrFwUtilityFunctionsTestCases.c.