Skip to content
This package was removed from CRAN on 2021-04-17. Its history is shown below.
Reason: check problems were not corrected in time
Details below reflect version 0.0.1, its last release before removal.

mockcpp

0.0.1

Mocking in C++ with 'testthat'

0packages depend
downloads / year
test coverage
checks pass

Overview

About
Maintained by Giovanni Charles1 releasesCRAN page ↗

A header only library integrating 'testthat' with 'trompeoeil' to provide mocking for C++ code in R packages. Mocking is a technique for making a fake version of a software service. You can mock services to test that your code interacts correctly with external interfaces, to make your tests deterministic, or to break your tests down into smaller units. 'testthat' provides a testing framework for R and C++ code in R packages. 'trompeoeil' is a C++ header only library for mocking.

Install

Health

CRAN checks

CRAN check results are not tracked yet.

Code health
Yes
Tests · ratio 0.80
not tracked
Coverage
1
Dependencies · direct

Documentation

Documentation
READMEYes · 127 wordsVignettesYes · dynamicpkgdown siteNoNEWSNoCode of conductNoContributing guideNo
Examples that run
not tracked
Documented parameters
not tracked
Return-value docs
not tracked
References docs
not tracked

Downloads

mockcpp
Daily download trend is not available in this view yet.
Also on12 autocran

Dependencies

Declared dependencies
8 external dependencies (excludes base and recommended)
Depends (0)
none
Imports (1)
LinkingTo (1)
Enhances (0)
none
Reverse dependencies
0direct
indirect (not tracked)

Nothing depends on this yet.

Code & Tests

People & History

People (3)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Copyright holders (2)
Package Timeline

1 release. R releases are shown for context.

  • R
    R 4.1.0 released · 2021-05-18
  • archivedRemoved from CRAN
    2021-04-17
    check problems were not corrected in time
  • 0.0.1
    2021-04-01
  • R
    R 4.0.0 released · 2020-04-24

Package metadata

Total releases
1
License
MIT + file LICENSE | BSL-1.0 OSI
Download size
not tracked yet
Installed size
not tracked yet
With dependencies
not tracked yet

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("mockcpp")
Charles, G., Imperial College of Science, Technology and Medicine, & Fahller, B. (n.d.). mockcpp: Mocking in C++ with 'testthat' (Version 0.0.1) [Computer software]. Retrieved August 12, 2026, from https://CRAN.R-project.org/package=mockcpp

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for mockcpp version 0.0.1 [Data set]. HJJB, LLC. Data release v2026-08-11. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-11, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy