cmocka: Implement expect_uint_in_set()
This commit is contained in:
parent
669b05fef6
commit
a9e34d885a
|
@ -900,6 +900,27 @@ void expect_in_set(#function, #parameter, intmax_t value_array[]);
|
|||
expect_int_in_set_count(function, parameter, value_array, 1)
|
||||
#endif
|
||||
|
||||
#ifdef DOXYGEN
|
||||
/**
|
||||
* @brief Add an event to check if the parameter value is part of the provided
|
||||
* unsigned integer array.
|
||||
*
|
||||
* The event is triggered by calling check_expected() in the mocked function.
|
||||
*
|
||||
* @param[in] #function The function to add the check for.
|
||||
*
|
||||
* @param[in] #parameter The name of the parameter passed to the function.
|
||||
*
|
||||
* @param[in] value_array[] The array to check for the value.
|
||||
*
|
||||
* @see check_expected().
|
||||
*/
|
||||
void expect_in_set(#function, #parameter, intmax_t value_array[]);
|
||||
#else
|
||||
#define expect_uint_in_set(function, parameter, value_array) \
|
||||
expect_uint_in_set_count(function, parameter, value_array, 1)
|
||||
#endif
|
||||
|
||||
#ifdef DOXYGEN
|
||||
/**
|
||||
* @brief Add an event to check if the parameter value is part of the provided
|
||||
|
|
Loading…
Reference in New Issue