verify_mock
Verify mock API call counts to ensure applications make correct API calls. Check actual invocation details against expected, minimum, or maximum parameters.
Instructions
Check whether a mock was called the expected number of times. Returns pass/fail status, actual call count, and invocation details. Optionally assert with expected_count, at_least, or at_most parameters. Use this to assert your application is making the right API calls.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| at_least | No | Minimum invocations expected | |
| at_most | No | Maximum invocations expected | |
| expected_count | No | Expected number of invocations (exact match) | |
| id | Yes | Mock ID to verify |