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:
parent
46e08d1652
commit
7a08708241
4 changed files with 28 additions and 0 deletions
|
@ -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
|
||||
|
|
20
devel/R-cran-mockr/Makefile
Normal file
20
devel/R-cran-mockr/Makefile
Normal 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>
|
3
devel/R-cran-mockr/distinfo
Normal file
3
devel/R-cran-mockr/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
TIMESTAMP = 1708759171
|
||||
SHA256 (mockr_0.2.1.tar.gz) = 23ef5941eeed6a20b7670e78ef54a406ecd1eb9b57da2d4ca92ae03696f27a58
|
||||
SIZE (mockr_0.2.1.tar.gz) = 20956
|
4
devel/R-cran-mockr/pkg-descr
Normal file
4
devel/R-cran-mockr/pkg-descr
Normal 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()'.
|
Loading…
Add table
Reference in a new issue