n-s-f/mockery: Mocking Library for R

The two main functionalities of this package are creating mock objects (functions) and selectively intercepting calls to a given function that originate in some other function. It can be used with any testing framework available for R. Mock objects can be injected with either this package's own stub() function or a similar with_mock() facility present in the 'testthat' package.

Getting started

Package details

Maintainer
LicenseMIT + file LICENSE
Version0.4.4.9000
URL https://github.com/r-lib/mockery
Package repositoryView on GitHub
Installation Install the latest version of this package by entering the following in R:
install.packages("remotes")
remotes::install_github("n-s-f/mockery")
n-s-f/mockery documentation built on Nov. 5, 2023, 4:11 a.m.