mockery
swMATH17402CRANmockeryMaRDI QIDQ29261
Mocking Library for R
Hadley Wickham, Jim Hester, Lukasz Bartnik, Noam Finkelstein
Last update: 26 September 2023
Copyright license: MIT license, File License
Software version identifier: 0.4.3, 0.2.0, 0.3.0, 0.4.0, 0.4.1.1, 0.4.1, 0.4.2, 0.4.4
Source code repository: https://github.com/cran/mockery
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.
Related Items (3)
This page was built for software: mockery