mockcpp: Mocking in C++ with 'testthat'

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.

Package details

AuthorGiovanni Charles [aut, cre], Imperial College of Science, Technology and Medicine [cph], Björn Fahller [cph]
MaintainerGiovanni Charles <giovanni.charles@gmail.com>
LicenseMIT + file LICENSE | BSL-1.0
Version0.0.1
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("mockcpp")

Try the mockcpp package in your browser

Any scripts or data that you put into this service are public.

mockcpp documentation built on April 1, 2021, 5:07 p.m.