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.

Total

34,699

Last month

4,285

Last week

896

Average per day

143

Daily downloads

Total downloads

Description file content

Package
mockery
Version
0.4.1
Title
Mocking Library for R
Description
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.
URL
BugReports
https://github.com/n-s-f/mockery/issues
Imports
testthat
Suggests
knitr, rmarkdown (>= 1.0)
License
MIT + file LICENSE
Collate
'expectations.R' 'mockery.R' 'mock-object.R' 'stub.R'
VignetteBuilder
knitr
RoxygenNote
6.0.1
NeedsCompilation
no
Packaged
2017-11-10 14:58:33 UTC; noam
Author
Noam Finkelstein [aut, cre], Lukasz Bartnik [aut]
Maintainer
Noam Finkelstein
Repository
CRAN
Date/Publication
2017-11-10 18:22:21 UTC

install.packages('mockery')

0.4.1

7 months ago

https://github.com/n-s-f/mockery

Noam Finkelstein

MIT + file LICENSE

Imports

testthat

Suggests

knitr, rmarkdown (>= 1.0)

Discussions