A real user wants to understand how to check parameters passed to mocked functions using CMocka. Navigate to the 'Checking Parameters' module. Identify the primary function used for checking parameters and explain how it works, including its parameters and return value. Additionally, find and describe how to check if a pointer parameter is NULL.
Navigate to the 'The CMocka API' page if not already there. Click on the 'Checking Parameters' link (ID 109). Identify the main function used for checking parameters. Describe the function's purpose, parameters, and return value. Locate and describe the method for checking if a pointer parameter is NULL, including any specific functions or macros used for this purpose. Synthesize the information to answer the proposed task.
The agent successfully navigates to the 'Checking Parameters' module page. The agent identifies `check_expected()` as the primary function for checking parameters. The agent describes `check_expected()` as retrieving a value previously stored using `expect_value()` or `expect_any()`, and that it returns the stored value. The agent identifies `expect_value()` and `expect_any()` as functions used to store expected values. The agent describes how to check for a NULL pointer parameter, specifically mentioning `expect_value(function, NULL)` or similar mechanisms if found on the page.