All functions

expect_call() expect_args() expect_called()

Expectation: does the given call match the expected?

mock() mock_args() mock_calls() length(<mock>)

Create and query a mocked function.

mockery mockery-package

R package to make mocking easier

stub()

Replace a function with a stub.