Skip to content

Commit 73c0a83

Browse files
committed
Add #nocov tags to src/* files
1 parent 2f8385d commit 73c0a83

File tree

4 files changed

+13
-10
lines changed

4 files changed

+13
-10
lines changed

ChangeLog

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
* inst/include/Rcpp/as.h: Idem
2121
* inst/include/Rcpp/exceptions.h: Idem
2222
* inst/include/Rcpp/r_cast.h: Idem
23+
* src/attributes.cpp: Idem
24+
* src/barrier.cpp: Idem
2325

2426
2025-12-30 Dirk Eddelbuettel <[email protected]>
2527

R/inline.R

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ Rcpp.plugin.maker <- function(include.before = "",
2323
libs = "",
2424
Makevars = NULL ,
2525
Makevars.win = NULL,
26-
package = "Rcpp") { # #nocov start
26+
package = "Rcpp") {
27+
# #nocov start
2728
function(...) {
2829
includes <- sprintf("%s
2930
#include <Rcpp.h>
@@ -37,8 +38,8 @@ Rcpp.plugin.maker <- function(include.before = "",
3738
#define END_RCPP
3839
#endif
3940
40-
using namespace Rcpp;", include.before, include.after) # #nocov end
41-
41+
using namespace Rcpp;", include.before, include.after)
42+
# #nocov end
4243
out <- list(env = list( PKG_LIBS = libs ),
4344
includes = includes,
4445
LinkingTo = LinkingTo ,

src/attributes.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// attributes.cpp: Rcpp R/C++ interface class library -- Rcpp attributes
22
//
33
// Copyright (C) 2012 - 2020 JJ Allaire, Dirk Eddelbuettel and Romain Francois
4-
// Copyright (C) 2021 - 2025 JJ Allaire, Dirk Eddelbuettel, Romain Francois, Iñaki Ucar and Travers Ching
4+
// Copyright (C) 2021 - 2026 JJ Allaire, Dirk Eddelbuettel, Romain Francois, Iñaki Ucar and Travers Ching
55
//
66
// This file is part of Rcpp.
77
//
@@ -2485,8 +2485,8 @@ namespace attributes {
24852485
if(attribute.hasParameter(kExportSignature)) {
24862486
args = attribute.customRSignature();
24872487
if(!checkRSignature(function, args)) {
2488-
std::string rsig_err_msg = "Missing args in " + args;
2489-
throw Rcpp::exception(rsig_err_msg.c_str());
2488+
std::string rsig_err_msg = "Missing args in " + args; // #nocov
2489+
throw Rcpp::exception(rsig_err_msg.c_str()); // #nocov
24902490
}
24912491
}
24922492
// determine the function name

src/barrier.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// barrier.cpp: Rcpp R/C++ interface class library -- write barrier
33
//
44
// Copyright (C) 2010 - 2020 Dirk Eddelbuettel and Romain Francois
5-
// Copyright (C) 2021 - 2025 Dirk Eddelbuettel, Romain Francois and Iñaki Ucar
5+
// Copyright (C) 2021 - 2026 Dirk Eddelbuettel, Romain Francois and Iñaki Ucar
66
//
77
// This file is part of Rcpp.
88
//
@@ -103,13 +103,13 @@ void Rcpp_precious_init() {
103103
R_PreserveObject(Rcpp_precious); // and protect
104104
}
105105
// [[Rcpp::register]]
106-
void Rcpp_precious_teardown() {
106+
void Rcpp_precious_teardown() { // #nocov start
107107
R_ReleaseObject(Rcpp_precious); // release resource
108-
}
108+
} // #nocov end
109109
// [[Rcpp::register]]
110110
SEXP Rcpp_precious_preserve(SEXP object) {
111111
if (object == R_NilValue) {
112-
return R_NilValue;
112+
return R_NilValue; // #nocov
113113
}
114114
PROTECT(object);
115115
SEXP cell = PROTECT(CONS(Rcpp_precious, CDR(Rcpp_precious)));

0 commit comments

Comments
 (0)