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.
Version: | 0.4.1 |
Imports: | testthat |
Suggests: | knitr, rmarkdown (≥ 1.0) |
Published: | 2017-11-10 |
Author: | Noam Finkelstein [aut, cre], Lukasz Bartnik [aut] |
Maintainer: | Noam Finkelstein <noam.finkelstein at jhu.edu> |
BugReports: | https://github.com/n-s-f/mockery/issues |
License: | MIT + file LICENSE |
URL: | https://github.com/n-s-f/mockery |
NeedsCompilation: | no |
Materials: | README NEWS |
CRAN checks: | mockery results |
Reference manual: | mockery.pdf |
Vignettes: |
Mocks: Integrating with testthat |
Package source: | mockery_0.4.1.tar.gz |
Windows binaries: | r-devel: mockery_0.4.1.zip, r-release: mockery_0.4.1.zip, r-oldrel: mockery_0.4.1.zip |
OS X El Capitan binaries: | r-release: mockery_0.4.1.tgz |
OS X Mavericks binaries: | r-oldrel: mockery_0.4.1.tgz |
Old sources: | mockery archive |
Reverse imports: | githubinstall |
Reverse suggests: | AlphaVantageClient, AzureML, checkpoint, civis, cli, covr, cranlike, crayon, debugme, dwapi, keyring, lintr, miniCRAN, prettycode, remotes, rGoodData, sankey, secret, sessioninfo, subprocess, tracer, whoami |
Please use the canonical form https://CRAN.R-project.org/package=mockery to link to this page.