Rtos API example
find.cpp File Reference
Test cases to find KVs in the CFSTORE using the drv->Find() interface. More...
Go to the source code of this file.
Functions | |
control_t | cfstore_find_test_01 (const size_t call_count) |
test to call cfstore_find() with a key_name string that exceeds the maximum length | |
control_t | cfstore_find_test_02 (const size_t call_count) |
test to call cfstore_find() with key_name that in includes illegal characters
| |
control_t | cfstore_find_test_03_end (const size_t call_count) |
test to call cfstore_find() with key_name that in includes illegal characters
| |
control_t | cfstore_find_test_04 (const size_t call_count) |
TODO: write test that uses cfstore_find_test_04_kv_data to grow {key, value} from 1 char to 221 chars long. | |
static bool | cfstore_find_key_name_validate (const char *key_name, const char *match, bool should_find) |
function to test whether a key name is valid, can be added to the cfstore and found by a wildcard string | |
control_t | cfstore_find_test_05_end (const size_t call_count) |
test whether a key name in the above table are valid, can be added to the cfstore and found by a wildcard string | |
control_t | cfstore_find_test_06_end (const size_t call_count) |
test to use find to find at least 2 entries in the cfstore, but the query string doesnt match the last 2 entries in the store. | |
control_t | cfstore_find_test_07_end (const size_t call_count) |
test case to check Find() with previous NULL pointer works |
Detailed Description
Test cases to find KVs in the CFSTORE using the drv->Find() interface.
Please consult the documentation under the test-case functions for a description of the individual test case.
Definition in file find.cpp.
Function Documentation
static bool cfstore_find_key_name_validate | ( | const char * | key_name, |
const char * | match, | ||
bool | should_find | ||
) | [static] |
function to test whether a key name is valid, can be added to the cfstore and found by a wildcard string
- Parameters:
-
key_name name of the key to create in the store match string to use to try and find key_name in the cfstore should_find if true, then 'match' should find 'key_name' in the store if false, then 'match' should not find 'key_name' in the store
- Returns:
- status code ARM_DRIVER_OK, the test passed successfully ret < ARM_DRIVER_OK, the test failed with the return code supplying more details
control_t cfstore_find_test_01 | ( | const size_t | call_count ) |
control_t cfstore_find_test_02 | ( | const size_t | call_count ) |
test to call cfstore_find() with key_name that in includes illegal characters
- the character can be at the beginning of the key_name
- the character can be at the end of the key_name
- the character can be somewhere within the key_name string
- Returns:
- on success returns CaseNext to continue to next test case, otherwise will assert on errors.
control_t cfstore_find_test_03_end | ( | const size_t | call_count ) |
test to call cfstore_find() with key_name that in includes illegal characters
- the character can be at the beginning of the key_name
- the character can be at the end of the key_name
- the character can be somewhere within the key_name string
- Returns:
- on success returns CaseNext to continue to next test case, otherwise will assert on errors.
control_t cfstore_find_test_04 | ( | const size_t | call_count ) |
control_t cfstore_find_test_05_end | ( | const size_t | call_count ) |
control_t cfstore_find_test_06_end | ( | const size_t | call_count ) |
Generated on Sun Jul 17 2022 08:25:34 by 1.7.2