Mocks: Integrating with testthat
Mocks | Creating a mock function | Return values | Cycling through return values | Evaluating expression in an environment of choice | Integration with with_mocked_bindings() | Simple integration | Verifying the number of calls | Verify the call signature | Verify values of argument | Further reading