# -------------------------------------------- # CITATION file created with {cffr} R package # See also: https://docs.ropensci.org/cffr/ # -------------------------------------------- cff-version: 1.2.0 message: 'To cite package "mockthat" in publications use:' type: software license: MIT title: 'mockthat: Function Mocking for Unit Testing' version: 0.2.8 doi: 10.32614/CRAN.package.mockthat abstract: With the deprecation of mocking capabilities shipped with 'testthat' as of 'edition 3' it is left to third-party packages to replace this functionality, which in some test-scenarios is essential in order to run unit tests in limited environments (such as no Internet connection). Mocking in this setting means temporarily substituting a function with a stub that acts in some sense like the original function (for example by serving a HTTP response that has been cached as a file). The only exported function 'with_mock()' is modeled after the eponymous 'testthat' function with the intention of providing a drop-in replacement. authors: - family-names: Bennett given-names: Nicolas email: nicolas.bennett@stat.math.ethz.ch repository: https://nbenn.r-universe.dev repository-code: https://github.com/nbenn/mockthat commit: 4a070bfd39fbc3f7a996ea9ee34b7f1409e8d4b2 url: https://nbenn.github.io/mockthat/ contact: - family-names: Bennett given-names: Nicolas email: nicolas.bennett@stat.math.ethz.ch