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

80,265

Last month

14,185

Last week

3,034

Average per day

473

Daily downloads

Total downloads

Description file content

Package
mockery
Version
0.4.1.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), R6
License
MIT + file LICENSE
Collate
'expectations.R' 'mockery.R' 'mock-object.R' 'stub.R'
VignetteBuilder
knitr
RoxygenNote
6.0.1
NeedsCompilation
no
Packaged
2018-08-19 08:39:12 UTC; hornik
Author
Noam Finkelstein [aut, cre], Lukasz Bartnik [aut]
Maintainer
ORPHANED
Repository
CRAN
Date/Publication
2018-08-19 08:51:36 UTC
X-CRAN-Original-Maintainer
Noam Finkelstein
X-CRAN-Comment
Orphaned and corrected on 2018-08-19 as check problems were not corrected despite reminders.

install.packages('mockery')

0.4.1.1

3 months ago

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

ORPHANED

MIT + file LICENSE

Imports

testthat

Suggests

knitr, rmarkdown (>= 1.0), R6

Discussions