devel/R-cran-mockr: New port: Mocking in R

- Submitter becomes maintainer

Provides a means to mock a package function, i.e., temporarily substitute
it for testing.
Designed as a drop-in replacement for the now deprecated
'testthat::with_mock()' and 'testthat::local_mock()'.

WWW: https://krlmlr.github.io/mockr/

Differential Revision:	https://reviews.freebsd.org/D43735
This commit is contained in:
Einar Bjarni Halldórsson 2024-04-05 12:57:24 +01:00 committed by Nuno Teixeira
parent 46e08d1652
commit 7a08708241
4 changed files with 28 additions and 0 deletions

View file

@ -85,6 +85,7 @@
SUBDIR += R-cran-microbenchmark
SUBDIR += R-cran-mlbench
SUBDIR += R-cran-mockery
SUBDIR += R-cran-mockr
SUBDIR += R-cran-msm
SUBDIR += R-cran-multicool
SUBDIR += R-cran-optparse

View file

@ -0,0 +1,20 @@
PORTNAME= mockr
DISTVERSION= 0.2.1
CATEGORIES= devel
DISTNAME= ${PORTNAME}_${DISTVERSION}
MAINTAINER= einar@isnic.is
COMMENT= Mocking in R
WWW= https://krlmlr.github.io/mockr/
LICENSE= GPLv3
CRAN_DEPENDS= R-cran-rlang>0:devel/R-cran-rlang \
R-cran-withr>0:devel/R-cran-withr
BUILD_DEPENDS= ${CRAN_DEPENDS}
RUN_DEPENDS= ${CRAN_DEPENDS}
TEST_DEPENDS= R-cran-testthat>0:devel/R-cran-testthat
USES= cran:auto-plist
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1708759171
SHA256 (mockr_0.2.1.tar.gz) = 23ef5941eeed6a20b7670e78ef54a406ecd1eb9b57da2d4ca92ae03696f27a58
SIZE (mockr_0.2.1.tar.gz) = 20956

View file

@ -0,0 +1,4 @@
Provides a means to mock a package function, i.e., temporarily substitute
it for testing.
Designed as a drop-in replacement for the now deprecated
'testthat::with_mock()' and 'testthat::local_mock()'.