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.

Version: 0.4.3
Imports: testthat
Suggests: knitr, R6, rmarkdown (≥ 1.0)
Published: 2022-02-20
Author: Noam Finkelstein [aut], Lukasz Bartnik [aut], Jim Hester [aut], Hadley Wickham [aut, cre]
Maintainer: Hadley Wickham <hadley at rstudio.com>
BugReports: https://github.com/r-lib/mockery/issues
License: MIT + file LICENSE
URL: https://github.com/r-lib/mockery
NeedsCompilation: no
Materials: README NEWS
CRAN checks: mockery results

Documentation:

Reference manual: mockery.pdf
Vignettes: Mocks: Integrating with testthat

Downloads:

Package source: mockery_0.4.3.tar.gz
Windows binaries: r-devel: mockery_0.4.3.zip, r-release: mockery_0.4.3.zip, r-oldrel: mockery_0.4.3.zip
macOS binaries: r-release (arm64): mockery_0.4.3.tgz, r-oldrel (arm64): mockery_0.4.3.tgz, r-release (x86_64): mockery_0.4.3.tgz, r-oldrel (x86_64): mockery_0.4.3.tgz
Old sources: mockery archive

Reverse dependencies:

Reverse imports: gitear, githubinstall, zoltr
Reverse suggests: activatr, and, asciicast, bench, biomaRt, biometryassist, bootGOF, callr, cellxgenedp, cfid, civis, cli, conflr, connectapi, covidcast, covr, cpp11, cranlike, crayon, dadjokeapi, data.tree, DataFakeR, debugme, devtools, DominoDataCapture, droll, DSMolgenisArmadillo, fipio, fledge, gh, gitcreds, googleCloudVisionR, greta, ijtiff, imagefluency, installr, keyring, lacrmr, languageserver, lintr, mailmerge, mcmcensemble, metaDigitise, miniCRAN, mixR, mknapsack, MMAPPR2, MolgenisArmadillo, MolgenisAuth, MtreeRing, natmanager, newsanchor, NHSRplotthedots, odin, odns, opencage, optedr, orderly, ottr, overture, pacs, pak, PhilipsHue, pins, pkgcache, pkgdepends, pkgsearch, PKPDsim, plinkQC, plumber, pocketapi, precommit, prettycode, prompt, rcmdcheck, rdoc, RedditExtractoR, remotes, rhdf5, Rhdf5lib, rhino, ROCaggregator, RTD, rversions, sankey, secret, sentryR, sessioninfo, shiny.react, shinyobjects, simpleMH, testthat, tracer, vaultr, whoami, wildmeta, xaringanthemer, xml2, ZillowR

Linking:

Please use the canonical form https://CRAN.R-project.org/package=mockery to link to this page.