mockr-package: mockr: Mocking in R

mockr-packageR Documentation

mockr: Mocking in R

Description

Provides a means to mock a package function, i.e., temporarily substitute it for testing. Designed as a drop-in replacement for the now deprecated 'testthat::with_mock()' and 'testthat::local_mock()'.

Author(s)

Maintainer: Kirill Müller kirill@cynkra.com

See Also

Useful links:


mockr documentation built on Feb. 16, 2023, 5:08 p.m.